« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateArtistInfoPageArtworksChunkItem.js5
-rw-r--r--src/content/dependencies/generateArtistInfoPageChunkItem.js8
-rw-r--r--src/content/dependencies/generateArtistInfoPageOtherArtistLinks.js28
3 files changed, 0 insertions, 41 deletions
diff --git a/src/content/dependencies/generateArtistInfoPageArtworksChunkItem.js b/src/content/dependencies/generateArtistInfoPageArtworksChunkItem.js
index e3ba5342..993ef706 100644
--- a/src/content/dependencies/generateArtistInfoPageArtworksChunkItem.js
+++ b/src/content/dependencies/generateArtistInfoPageArtworksChunkItem.js
@@ -21,9 +21,6 @@ export default {
         ? relation('linkTrack', contrib.thing.thing)
         : null),
 
-    otherArtistLinks:
-      relation('generateArtistInfoPageOtherArtistLinks', [contrib]),
-
     originDetails:
       relation('transformContent', contrib.thing.originDetails),
   }),
@@ -48,8 +45,6 @@ export default {
 
   generate: (data, relations, slots, {html, language}) =>
     relations.template.slots({
-      otherArtistLinks: relations.otherArtistLinks,
-
       annotation:
         language.encapsulate('artistPage.creditList.entry.artwork.accent', workingCapsule => {
           const workingOptions = {};
diff --git a/src/content/dependencies/generateArtistInfoPageChunkItem.js b/src/content/dependencies/generateArtistInfoPageChunkItem.js
index cf45a37c..457e82f5 100644
--- a/src/content/dependencies/generateArtistInfoPageChunkItem.js
+++ b/src/content/dependencies/generateArtistInfoPageChunkItem.js
@@ -22,10 +22,6 @@ export default {
       mutable: false,
     },
 
-    otherArtistLinks: {
-      validate: v => v.strictArrayOf(v.isHTML),
-    },
-
     rereleaseTooltip: {
       type: 'html',
       mutable: false,
@@ -67,10 +63,6 @@ export default {
                   text: language.$(entryCapsule, 'firstRelease.term'),
                   tooltip: slots.firstReleaseTooltip,
                 });
-            } else if (!empty(slots.otherArtistLinks)) {
-              workingCapsule += '.withArtists';
-              workingOptions.artists =
-                language.formatConjunctionList(slots.otherArtistLinks);
             }
 
             if (!html.isBlank(slots.annotation)) {
diff --git a/src/content/dependencies/generateArtistInfoPageOtherArtistLinks.js b/src/content/dependencies/generateArtistInfoPageOtherArtistLinks.js
deleted file mode 100644
index afb61c33..00000000
--- a/src/content/dependencies/generateArtistInfoPageOtherArtistLinks.js
+++ /dev/null
@@ -1,28 +0,0 @@
-import {unique} from '#sugar';
-
-export default {
-  query(contribs) {
-    const associatedContributionsByOtherArtists =
-      contribs
-        .flatMap(ownContrib =>
-          ownContrib.associatedContributions
-            .filter(associatedContrib =>
-              associatedContrib.artist !== ownContrib.artist));
-
-    const otherArtists =
-      unique(
-        associatedContributionsByOtherArtists
-          .map(contrib => contrib.artist));
-
-    return {otherArtists};
-  },
-
-  relations: (relation, query) => ({
-    artistLinks:
-      query.otherArtists
-        .map(artist => relation('linkArtist', artist)),
-  }),
-
-  generate: (relations) =>
-    relations.artistLinks,
-};