« get me outta code hell

loads of code shenanigans - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/common.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2020-06-06 18:40:05 -0300
committerFlorrie <towerofnix@gmail.com>2020-06-06 18:40:05 -0300
commit0cd7e34d0fa2fe019a37472bd2ecf14db05f63fb (patch)
treec1078ad7d5525930f97e17c9b3156072b4be3af3 /common.js
parent6592c70fd5143808b1c238a8ace9038baae599ef (diff)
loads of code shenanigans
Diffstat (limited to 'common.js')
-rw-r--r--common.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/common.js b/common.js
index 208e33b..505cfb8 100644
--- a/common.js
+++ b/common.js
@@ -70,11 +70,6 @@ const C = {
     // sorted 8y date.
     getAllTracks: albumData => C.sortByDate(albumData.reduce((acc, album) => acc.concat(album.tracks), [])),
 
-    getArtistNames: (albumData, flashData) => Array.from(new Set([
-        ...albumData.reduce((acc, album) => acc.concat((album.coverArtists || []).map(({ who }) => who), album.tracks.reduce((acc, track) => acc.concat(track.artists, (track.coverArtists || []).map(({ who }) => who)), [])), []),
-        ...flashData.filter(flash => !flash.act8r8k).reduce((acc, flash) => acc.concat(flash.contributors.map(({ who }) => who)), [])
-    ])),
-
     getKebabCase: name => name.split(' ').join('-').replace(/&/g, 'and').replace(/[^a-zA-Z0-9\-]/g, '').replace(/-{2,}/g, '-').replace(/^-+|-+$/g, '').toLowerCase(),
 
     // Terri8le hack: since artists aren't really o8jects and don't have proper