From c6f9b966adefc46ebd6cc637abf78cb91d1b6ddb Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 3 Jun 2023 15:21:59 -0300 Subject: content: remove dead reference code --- src/content/dependencies/generateArtistInfoPage.js | 80 ---------------------- 1 file changed, 80 deletions(-) (limited to 'src') diff --git a/src/content/dependencies/generateArtistInfoPage.js b/src/content/dependencies/generateArtistInfoPage.js index 01b3347a..cc19a8d0 100644 --- a/src/content/dependencies/generateArtistInfoPage.js +++ b/src/content/dependencies/generateArtistInfoPage.js @@ -524,13 +524,6 @@ export function write(artist, {wikiData}) { const {name, urls, contextNotes} = artist; - const getArtistsAndContrib = (thing, key) => ({ - artists: thing[key]?.filter(({who}) => who !== artist), - contrib: thing[key]?.find(({who}) => who === artist), - thing, - key, - }); - let flashes, flashListChunks; if (wikiInfo.enableFlashesAndGames) { flashes = sortChronologically(artist.flashesAsContributor.slice()); @@ -554,66 +547,6 @@ export function write(artist, {wikiData}) { })); } - const unbound_generateTrackList = (chunks, { - getArtistString, - html, - language, - link, - }) => - html.tag('dl', - chunks.flatMap(({date, album, chunk, duration}) => [ - html.tag('dt', - date && duration ? - language.$('artistPage.creditList.album.withDate.withDuration', { - album: link.album(album), - date: language.formatDate(date), - duration: language.formatDuration(duration, { - approximate: true, - }), - }) : - - date ? - language.$('artistPage.creditList.album.withDate', { - album: link.album(album), - date: language.formatDate(date), - }) : - - duration ? - language.$('artistPage.creditList.album.withDuration', { - album: link.album(album), - duration: language.formatDuration(duration, { - approximate: true, - }), - }) : - - language.$('artistPage.creditList.album', { - album: link.album(album), - })), - - html.tag('dd', - html.tag('ul', - chunk - .map(({track, ...props}) => ({ - original: track.originalReleaseTrack, - entry: language.$('artistPage.creditList.entry.track.withDuration', { - track: link.track(track), - duration: language.formatDuration(track.duration ?? 0), - }), - ...props, - })) - .map(({original, ...opts}) => - html.tag('li', - {class: original && 'rerelease'}, - generateEntryAccents({ - getArtistString, - language, - original, - ...opts, - }) - ) - ))), - ])); - const unbound_serializeArtistsAndContrib = (key, {serializeContribs, serializeLink}) => (thing) => { @@ -774,17 +707,6 @@ export function write(artist, {wikiData}) { ].filter(Boolean)), })), - ...html.fragment( - !empty(allTracks) && [ - html.tag('h2', - {id: 'tracks', class: ['content-heading']}, - language.$('artistPage.trackList.title')), - - generateTrackList(trackListChunks), - ]), - - - ...html.fragment( wikiInfo.enableFlashesAndGames && !empty(flashes) && [ @@ -827,8 +749,6 @@ export function write(artist, {wikiData}) { .map(row => html.tag('li', row)))), ])), ]), - - ], }, }; -- cgit 1.3.0-6-gf8a5