« get me outta code hell

data: Track: chop withPropertyFromMainRelease - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite/things/track/withPropertyFromMainRelease.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-11-27 17:19:50 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-11-27 17:19:50 -0400
commitc63cf25423141491d74cd27be822adf2c66240c3 (patch)
treed851a85d2485b2bd8c4a544c4708561ac7705949 /src/data/composite/things/track/withPropertyFromMainRelease.js
parentb754b54c7909da1f53b99b171e1f5b1183ca5549 (diff)
data: Track: chop withPropertyFromMainRelease
Diffstat (limited to 'src/data/composite/things/track/withPropertyFromMainRelease.js')
-rw-r--r--src/data/composite/things/track/withPropertyFromMainRelease.js53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/data/composite/things/track/withPropertyFromMainRelease.js b/src/data/composite/things/track/withPropertyFromMainRelease.js
deleted file mode 100644
index ba3e2275..00000000
--- a/src/data/composite/things/track/withPropertyFromMainRelease.js
+++ /dev/null
@@ -1,53 +0,0 @@
-// Provides a value inherited from the main release, or null,
-// if this track is not a secondary release.
-
-import {input, templateCompositeFrom} from '#composite';
-
-import {withPropertyFromObject} from '#composite/data';
-
-export default templateCompositeFrom({
-  annotation: `withPropertyFromMainRelease`,
-
-  inputs: {
-    property: input({type: 'string'}),
-  },
-
-  outputs: ({
-    [input.staticValue('property')]: property,
-  }) => [
-    (property
-        ? '#mainRelease.' + property
-        : '#mainReleaseValue'),
-  ],
-
-  steps: () => [
-    {
-      dependencies: ['isSecondaryRelease', input.staticValue('property')],
-      compute: (continuation, {
-        ['isSecondaryRelease']: isSecondaryRelease,
-        [input.staticValue('property')]: property,
-      }) =>
-        (isSecondaryRelease
-          ? continuation()
-       : property
-          ? continuation.raiseOutput({['#mainRelease.' + property]: null})
-          : continuation.raiseOutput({'#mainReleaseValue': null})),
-    },
-
-    withPropertyFromObject({
-      object: 'mainReleaseTrack',
-      property: input('property'),
-    }),
-
-    {
-      dependencies: ['#value', input.staticValue('property')],
-      compute: (continuation, {
-        ['#value']: value,
-        [input.staticValue('property')]: property,
-      }) =>
-        (property
-          ? continuation.raiseOutput({['#mainRelease.' + property]: value})
-          : continuation.raiseOutput({'#mainReleaseValue': value})),
-    },
-  ],
-});