mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-24 02:27:37 +00:00
Remove unused code (#176)
This commit is contained in:
parent
0524cc60a1
commit
6d58d7a8da
1 changed files with 0 additions and 29 deletions
29
js/winamp.js
29
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)
|
||||
];
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue