« get me outta code hell

data: Artwork: chop withAttachedArtwork & friends - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite/things/artwork/withAttachedArtwork.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-11-26 20:22:33 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-11-26 20:22:33 -0400
commit3ec014c234ae8979a32989d9acbc0ac360914abb (patch)
tree39c4dfab63037f4b79ad1a46f161b0ac718fac87 /src/data/composite/things/artwork/withAttachedArtwork.js
parent3fe4b78ad3fb15296447891fa59baeea05ba6c24 (diff)
data: Artwork: chop withAttachedArtwork & friends
Diffstat (limited to 'src/data/composite/things/artwork/withAttachedArtwork.js')
-rw-r--r--src/data/composite/things/artwork/withAttachedArtwork.js43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/data/composite/things/artwork/withAttachedArtwork.js b/src/data/composite/things/artwork/withAttachedArtwork.js
deleted file mode 100644
index d7c0d87b..00000000
--- a/src/data/composite/things/artwork/withAttachedArtwork.js
+++ /dev/null
@@ -1,43 +0,0 @@
-import {input, templateCompositeFrom} from '#composite';
-
-import {flipFilter, raiseOutputWithoutDependency}
-  from '#composite/control-flow';
-import {withNearbyItemFromList, withPropertyFromList} from '#composite/data';
-
-import withContainingArtworkList from './withContainingArtworkList.js';
-
-export default templateCompositeFrom({
-  annotaion: `withContribsFromMainArtwork`,
-
-  outputs: ['#attachedArtwork'],
-
-  steps: () => [
-    raiseOutputWithoutDependency({
-      dependency: 'attachAbove',
-      mode: input.value('falsy'),
-      output: input.value({'#attachedArtwork': null}),
-    }),
-
-    withContainingArtworkList(),
-
-    withPropertyFromList({
-      list: '#containingArtworkList',
-      property: input.value('attachAbove'),
-    }),
-
-    flipFilter({
-      filter: '#containingArtworkList.attachAbove',
-    }).outputs({
-      '#containingArtworkList.attachAbove': '#filterNotAttached',
-    }),
-
-    withNearbyItemFromList({
-      list: '#containingArtworkList',
-      item: input.myself(),
-      offset: input.value(-1),
-      filter: '#filterNotAttached',
-    }).outputs({
-      '#nearbyItem': '#attachedArtwork',
-    }),
-  ],
-});