« get me outta code hell

More code cleanup - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-07-30 19:05:18 -0300
committerFlorrie <towerofnix@gmail.com>2018-07-30 19:05:18 -0300
commit3c27a1bbd3fc0d496ee022c9ddcd1a59ee224903 (patch)
tree39f71cbf1d2fa91be75dbd038d40e2da7ec0209e
parent17a29db0392872fa71b761392f38366b60203bdc (diff)
More code cleanup
-rw-r--r--ui.js14
1 files 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