« get me outta code hell

content: remove dead reference code - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-06-04 13:31:24 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-06-04 13:31:24 -0300
commit0a4bd44da7eb9a720504df45b068e77a81a82a1c (patch)
treef707b585c27e03ccfe59591b1977ca2fe156be97
parent11c3c4c976c2b7ed711006c7bf19030c7a986209 (diff)
content: remove dead reference code
-rw-r--r--src/content/dependencies/generateArtistInfoPage.js71
1 files changed, 0 insertions, 71 deletions
diff --git a/src/content/dependencies/generateArtistInfoPage.js b/src/content/dependencies/generateArtistInfoPage.js
index 71f1001..7599b5b 100644
--- a/src/content/dependencies/generateArtistInfoPage.js
+++ b/src/content/dependencies/generateArtistInfoPage.js
@@ -696,33 +696,6 @@ export default {
 };
 
 /*
-
-export function write(artist, {wikiData}) {
-  const {groupData, wikiInfo} = wikiData;
-
-  let flashes, flashListChunks;
-  if (wikiInfo.enableFlashesAndGames) {
-    flashes = sortFlashesChronologically(artist.flashesAsContributor.slice());
-    flashListChunks = chunkByProperties(
-      flashes.map((flash) => ({
-        act: flash.act,
-        flash,
-        date: flash.date,
-        // Manual artists/contrib properties here, 8ecause we don't
-        // want to show the full list of other contri8utors inline.
-        // (It can often 8e very, very large!)
-        artists: [],
-        contrib: flash.contributorContribs.find(({who}) => who === artist),
-      })),
-      ['act']
-    ).map(({act, chunk}) => ({
-      act,
-      chunk,
-      dateFirst: chunk[0].date,
-      dateLast: chunk[chunk.length - 1].date,
-    }));
-  }
-
   const unbound_serializeArtistsAndContrib =
     (key, {serializeContribs, serializeLink}) =>
     (thing) => {
@@ -745,15 +718,6 @@ export function write(artist, {wikiData}) {
       })),
     }));
 
-  const jumpTo = {
-    tracks: !empty(allTracks),
-    art: !empty(artThingsAll),
-    flashes: wikiInfo.enableFlashesAndGames && !empty(flashes),
-    commentary: !empty(commentaryThings),
-  };
-
-  const showJumpTo = Object.values(jumpTo).includes(true);
-
   const data = {
     type: 'data',
     path: ['artist', artist.directory],
@@ -797,37 +761,6 @@ export function write(artist, {wikiData}) {
     },
   };
 
-  const infoPage = {
-    type: 'page',
-    path: ['artist', artist.directory],
-    page: ({
-      fancifyURL,
-      generateInfoGalleryLinks,
-      getArtistAvatar,
-      getArtistString,
-      html,
-      link,
-      language,
-      transformMultiline,
-    }) => {
-      const generateTrackList = bindOpts(unbound_generateTrackList, {
-        getArtistString,
-        html,
-        language,
-        link,
-      });
-
-      return {
-        title: language.$('artistPage.title', {artist: name}),
-
-        cover: artist.hasAvatar && {
-          src: getArtistAvatar(artist),
-          alt: language.$('misc.alt.artistAvatar'),
-        },
-      };
-    },
-  };
-
   const artThingsGallery = sortAlbumsTracksChronologically(
     [
       ...(artist.albumsAsCoverArtist ?? []),
@@ -879,8 +812,4 @@ export function write(artist, {wikiData}) {
       },
     }),
   };
-
-  return [data, infoPage, galleryPage].filter(Boolean);
-}
-
 */