« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite/things/track/withOtherReleases.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/composite/things/track/withOtherReleases.js')
-rw-r--r--src/data/composite/things/track/withOtherReleases.js30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/data/composite/things/track/withOtherReleases.js b/src/data/composite/things/track/withOtherReleases.js
deleted file mode 100644
index 0639742f..00000000
--- a/src/data/composite/things/track/withOtherReleases.js
+++ /dev/null
@@ -1,30 +0,0 @@
-// Gets all releases of the current track *except* this track itself;
-// in other words, all other releases of the current track.
-
-import {input, templateCompositeFrom} from '#composite';
-
-import {exitWithoutDependency} from '#composite/control-flow';
-import {withPropertyFromObject} from '#composite/data';
-
-import withAllReleases from './withAllReleases.js';
-
-export default templateCompositeFrom({
-  annotation: `withOtherReleases`,
-
-  outputs: ['#otherReleases'],
-
-  steps: () => [
-    withAllReleases(),
-
-    {
-      dependencies: [input.myself(), '#allReleases'],
-      compute: (continuation, {
-        [input.myself()]: thisTrack,
-        ['#allReleases']: allReleases,
-      }) => continuation({
-        ['#otherReleases']:
-          allReleases.filter(track => track !== thisTrack),
-      }),
-    },
-  ],
-});