« get me outta code hell

content: remove old chronology links - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateAlbumChronologyLinks.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-18 14:28:15 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-18 22:56:17 -0300
commit9e361235d7403961a117dc36a3fb4fb04537ef77 (patch)
tree80839c0233e21ba03fc88da538c15fe11be7b0e4 /src/content/dependencies/generateAlbumChronologyLinks.js
parent32d31bc3a36a77c51441f915440a990604ebbdd3 (diff)
content: remove old chronology links
Diffstat (limited to 'src/content/dependencies/generateAlbumChronologyLinks.js')
-rw-r--r--src/content/dependencies/generateAlbumChronologyLinks.js53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/content/dependencies/generateAlbumChronologyLinks.js b/src/content/dependencies/generateAlbumChronologyLinks.js
deleted file mode 100644
index 3dd7a18e..00000000
--- a/src/content/dependencies/generateAlbumChronologyLinks.js
+++ /dev/null
@@ -1,53 +0,0 @@
-import {sortAlbumsTracksChronologically} from '#sort';
-
-import getChronologyRelations from '../util/getChronologyRelations.js';
-
-export default {
-  contentDependencies: [
-    'generateChronologyLinks',
-    'linkAlbum',
-    'linkArtist',
-    'linkTrack',
-  ],
-
-  relations: (relation, album) => ({
-    chronologyLinks:
-      relation('generateChronologyLinks'),
-
-    coverArtistChronologyContributions:
-      getChronologyRelations(album, {
-        contributions: album.coverArtistContribs ?? [],
-
-        linkArtist: artist => relation('linkArtist', artist),
-
-        linkThing: trackOrAlbum =>
-          (trackOrAlbum.album
-            ? relation('linkTrack', trackOrAlbum)
-            : relation('linkAlbum', trackOrAlbum)),
-
-        getThings(artist) {
-          const getDate = thing => thing.coverArtDate ?? thing.date;
-
-          const things =
-            ([
-              artist.albumCoverArtistContributions,
-              artist.trackCoverArtistContributions,
-            ]).flat()
-              .map(({thing}) => thing)
-              .filter(getDate);
-
-          return sortAlbumsTracksChronologically(things, {getDate});
-        },
-      }),
-  }),
-
-  generate: (relations) =>
-    relations.chronologyLinks.slots({
-      chronologyInfoSets: [
-        {
-          headingString: 'misc.chronology.heading.coverArt',
-          contributions: relations.coverArtistChronologyContributions,
-        },
-      ],
-    }),
-}