Removed duplicated code

This commit is contained in:
Evan Harris
2019-11-12 01:50:02 -06:00
parent ecc026b3e8
commit 4a1493e474
@@ -311,17 +311,7 @@ public class PlayQueue {
* @param index The playlist index. * @param index The playlist index.
*/ */
public synchronized void moveUp(int index) { public synchronized void moveUp(int index) {
makeBackup(); moveDown(index - 1);
if (index <= 0 || index >= size()) {
return;
}
Collections.swap(files, index, index - 1);
if (this.index == index) {
this.index--;
} else if (this.index == index - 1) {
this.index++;
}
} }
/** /**