diff --git a/openlp/core/display/html/display.js b/openlp/core/display/html/display.js index c3e9f25b9..639308c67 100644 --- a/openlp/core/display/html/display.js +++ b/openlp/core/display/html/display.js @@ -235,119 +235,6 @@ function _createStyle(selector, rules) { } } -/** - * An audio player with a play list - */ -var AudioPlayer = function (audioElement) { - this._audioElement = null; - this._eventListeners = {}; - this._playlist = []; - this._currentTrack = null; - this._canRepeat = false; - this._state = AudioState.Stopped; - this.createAudioElement(); -}; - -/** - * Call all listeners associated with this event - * @private - * @param {object} event - The event that was emitted - */ -AudioPlayer.prototype._callListener = function (event) { - if (this._eventListeners.hasOwnProperty(event.type)) { - this._eventListeners[event.type].forEach(function (listener) { - listener(event); - }); - } - else { - console.warn("Received unknown event \"" + event.type + "\", doing nothing."); - } -}; - -/** - * Create the