From 0a4bd44da7eb9a720504df45b068e77a81a82a1c Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 4 Jun 2023 13:31:24 -0300 Subject: content: remove dead reference code --- src/content/dependencies/generateArtistInfoPage.js | 71 ---------------------- 1 file changed, 71 deletions(-) (limited to 'src/content') diff --git a/src/content/dependencies/generateArtistInfoPage.js b/src/content/dependencies/generateArtistInfoPage.js index 71f1001d..7599b5b6 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); -} - */ -- cgit 1.3.0-6-gf8a5