From 3c27a1bbd3fc0d496ee022c9ddcd1a59ee224903 Mon Sep 17 00:00:00 2001 From: Florrie Date: Mon, 30 Jul 2018 19:05:18 -0300 Subject: More code cleanup --- ui.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/ui.js b/ui.js index 98efd96..0a722ea 100644 --- a/ui.js +++ b/ui.js @@ -127,10 +127,8 @@ class AppElement extends FocusElement { item = {items: shuffleArray(flattenGrouplike(item).items)} } - let afterItem - if (where === 'end') { - afterItem = null - } else { + let afterItem = null + if (where === 'next') { afterItem = this.playingTrack } @@ -528,14 +526,6 @@ class AppElement extends FocusElement { this.queueListingElement.buildItems() } - shuffleQueueGrouplikeItem(item, ...rest) { - if (!isGroup(item)) { - return this.queueGrouplikeItem(item) - } - - return this.queueGrouplikeItem({items: shuffleArray(flattenGrouplike(item).items)}, ...rest) - } - async downloadGrouplikeItem(item) { if (isGroup(item)) { // TODO: Download all children (recursively), show a confirmation prompt -- cgit 1.3.0-6-gf8a5