« get me outta code hell

content, data: drop previous productions feature - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateTrackInfoPagePreviousProductionLine.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-12-31 07:29:40 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-12-31 07:29:40 -0400
commit0e15b509d725dc0ab16f9b7bad050bacb1ec9bf2 (patch)
treea3cba245c9fcbbd0a007e3713a9971172da85918 /src/content/dependencies/generateTrackInfoPagePreviousProductionLine.js
parent8749691c4242b6da831ed30540a12708fb7d655f (diff)
content, data: drop previous productions feature preview
Diffstat (limited to 'src/content/dependencies/generateTrackInfoPagePreviousProductionLine.js')
-rw-r--r--src/content/dependencies/generateTrackInfoPagePreviousProductionLine.js38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/content/dependencies/generateTrackInfoPagePreviousProductionLine.js b/src/content/dependencies/generateTrackInfoPagePreviousProductionLine.js
deleted file mode 100644
index f7f455c1..00000000
--- a/src/content/dependencies/generateTrackInfoPagePreviousProductionLine.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import {stitchArrays} from '#sugar';
-import {getKebabCase} from '#wiki-data';
-
-export default {
-  relations: (relation, track) => ({
-    trackLinks:
-      track.followingProductionTracks
-        .map(track => relation('linkTrack', track)),
-
-    albumLinks:
-      track.followingProductionTracks
-        .map(following =>
-          (following.album !== track.album &&
-           getKebabCase(following.name) === getKebabCase(track.name)
-
-            ? relation('linkAlbum', following.album)
-            : null)),
-  }),
-
-  generate: (relations, {language}) =>
-    language.encapsulate('releaseInfo.previousProduction', capsule =>
-      language.$(capsule, {
-        [language.onlyIfOptions]: ['tracks'],
-
-        tracks:
-          language.formatConjunctionList(
-            stitchArrays({
-              trackLink: relations.trackLinks,
-              albumLink: relations.albumLinks,
-            }).map(({trackLink, albumLink}) =>
-                (albumLink
-                  ? language.$(capsule, 'trackOnAlbum', {
-                      track: trackLink,
-                      album: albumLink,
-                    })
-                  : trackLink))),
-      })),
-};