From 4e79a885b82ad0bc66d3bc62fefef561c31099fb Mon Sep 17 00:00:00 2001 From: aemino Date: Sun, 4 Jun 2017 21:52:31 -0700 Subject: [PATCH] Remove unused VoiceBroadcast#guaranteeOpusEngine (fixes #1556) (#1563) --- src/client/voice/VoiceBroadcast.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/client/voice/VoiceBroadcast.js b/src/client/voice/VoiceBroadcast.js index b80efaf4a..c4562f17f 100644 --- a/src/client/voice/VoiceBroadcast.js +++ b/src/client/voice/VoiceBroadcast.js @@ -242,8 +242,6 @@ class VoiceBroadcast extends VolumeInterface { * @returns {VoiceBroadcast} */ playArbitraryInput(input, { seek = 0, volume = 1, passes = 1 } = {}) { - this.guaranteeOpusEngine(); - const options = { seek, volume, passes, input }; return this._playTranscodable(input, options); } @@ -272,10 +270,6 @@ class VoiceBroadcast extends VolumeInterface { } } - guaranteeOpusEngine() { - if (!this.opusEncoder) throw new Error('Couldn\'t find an Opus engine.'); - } - _startPlaying() { if (this.tickInterval) clearInterval(this.tickInterval); // Old code?