Removed duplicated code

master
Evan Harris 5 years ago
parent ecc026b3e8
commit 4a1493e474
No known key found for this signature in database
GPG Key ID: FF3BD4DA59FF9EDC
  1. 12
      airsonic-main/src/main/java/org/airsonic/player/domain/PlayQueue.java

@ -311,17 +311,7 @@ public class PlayQueue {
* @param index The playlist index.
*/
public synchronized void moveUp(int index) {
makeBackup();
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++;
}
moveDown(index - 1);
}
/**

Loading…
Cancel
Save