From a4f333127a0277cd577d1cdbef77804866ced870 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sun, 24 Jul 2011 16:30:51 +0100 Subject: [PATCH] remove old crap --- server/djrandom/frontend/static/player.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/server/djrandom/frontend/static/player.js b/server/djrandom/frontend/static/player.js index 31b1dcc..4550760 100644 --- a/server/djrandom/frontend/static/player.js +++ b/server/djrandom/frontend/static/player.js @@ -302,6 +302,9 @@ djr.debug = function(msg) { // ------ OLD -------- +/** + + // Return the current playlist ID. djr.Player.prototype.getCurrentPlaylistID = function() { return this.curPlaylistId; @@ -372,18 +375,6 @@ djr.Player.prototype.loadSearchResults = function(hashes, replace) { this.savePlaylist(); }; -// Start playing the next song in the playlist. -djr.Player.prototype.nextSong = function() { - var next_idx = this.curIdx + 1; - if (next_idx > this.curPlaylist.length) { - next_idx = 0; - } - var next_sha1 = this.curPlaylist[next_idx]; - djr.debug('next song: ' + next_sha1 + '(' + next_idx + ')'); - this.playSong(next_sha1); -}; - - // An error has occurred in the player. djr.Player.prototype.reportError = function(event) { switch(event.jPlayer.error.type) { @@ -396,5 +387,6 @@ djr.Player.prototype.reportError = function(event) { break; } }; +**/ // Fine -- GitLab