From 6d58d7a8dac4c6892cc742c4b4cb335671dc936d Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sat, 30 Jul 2016 21:35:29 -0700 Subject: [PATCH] Remove unused code (#176) --- js/winamp.js | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/js/winamp.js b/js/winamp.js index 4f5b0441..c7d0cb75 100755 --- a/js/winamp.js +++ b/js/winamp.js @@ -73,22 +73,6 @@ module.exports = { }, /* Functions */ - getDuration: function() { - return this.media.duration(); - }, - - getTimeRemaining: function() { - return this.media.timeRemaining(); - }, - - getTimeElapsed: function() { - return this.media.timeElapsed(); - }, - - getPercentComplete: function() { - return this.media.percentComplete(); - }, - seekToPercentComplete: function(percent) { this.media.seekToPercentComplete(percent); }, @@ -184,18 +168,5 @@ module.exports = { // Note, this will not happen right away this.media.loadBuffer(buffer, setMetaData.bind(this)); - }, - - /* Helpers */ - _timeObject: function(time) { - var minutes = Math.floor(time / 60); - var seconds = time - (minutes * 60); - - return [ - Math.floor(minutes / 10), - Math.floor(minutes % 10), - Math.floor(seconds / 10), - Math.floor(seconds % 10) - ]; } };