diff --git a/server/djrandom/frontend/static/player.js b/server/djrandom/frontend/static/player.js index 31b1dcc557be8ad71d6ee09cb171dfe8048ad408..4550760da66643d8e786a41cf22e0f843d038651 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