From c63cf25423141491d74cd27be822adf2c66240c3 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 27 Nov 2025 17:19:50 -0400 Subject: data: Track: chop withPropertyFromMainRelease --- .../things/track/withPropertyFromMainRelease.js | 53 ---------------------- 1 file changed, 53 deletions(-) delete mode 100644 src/data/composite/things/track/withPropertyFromMainRelease.js (limited to 'src/data/composite/things/track/withPropertyFromMainRelease.js') 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})), - }, - ], -}); -- cgit 1.3.0-6-gf8a5