diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-04-07 06:59:22 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-04-07 06:59:22 -0300 |
commit | 1ed038f459ed9e4ffeb91149a0067349d6e16641 (patch) | |
tree | 09c339294738c33f180d8fadf840641c0e1c81c5 /src/data | |
parent | 540b3889a1d59f2a707f57d3f14f53b91aae2e4d (diff) |
data: remove TrackSection.startIndex preview
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/things/album.js | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js index 762e7d48..5aba75f7 100644 --- a/src/data/things/album.js +++ b/src/data/things/album.js @@ -745,44 +745,6 @@ export class TrackSection extends Thing { exposeDependency({dependency: '#continueCountingFrom'}), ], - - startIndex: [ - withAlbum(), - - withPropertyFromObject({ - object: '#album', - property: input.value('trackSections'), - }), - - { - dependencies: ['#album.trackSections', input.myself()], - compute: (continuation, { - ['#album.trackSections']: trackSections, - [input.myself()]: myself, - }) => continuation({ - ['#index']: - trackSections.indexOf(myself), - }), - }, - - exitWithoutDependency({ - dependency: '#index', - mode: input.value('index'), - value: input.value(0), - }), - - { - dependencies: ['#album.trackSections', '#index'], - compute: ({ - ['#album.trackSections']: trackSections, - ['#index']: index, - }) => - accumulateSum( - trackSections - .slice(0, index) - .map(section => section.tracks.length)), - }, - ], }); static [Thing.findSpecs] = { |