From adc13add67ba73188970c6e60778367f84dc4670 Mon Sep 17 00:00:00 2001 From: prlanzarin <4529051+prlanzarin@users.noreply.github.com> Date: Tue, 22 Feb 2022 13:42:20 -0300 Subject: [PATCH] refactor(audio): remove duplicated loadBridges method definition Seems to have been introduced by a partial merge commit There were a bunch of style changes introduced by that partial commit as well; I kept those changes to avoid introducing further conflicts between v2.4-2.5... --- .../ui/services/audio-manager/index.js | 41 ------------------- 1 file changed, 41 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/services/audio-manager/index.js b/bigbluebutton-html5/imports/ui/services/audio-manager/index.js index 2d64e2323e..a2c54cb19a 100755 --- a/bigbluebutton-html5/imports/ui/services/audio-manager/index.js +++ b/bigbluebutton-html5/imports/ui/services/audio-manager/index.js @@ -143,47 +143,6 @@ class AudioManager { } } - /** - * Load audio bridges modules to be used the manager. - * - * Bridges can be configured in settings.yml file. - * @param {Object} userData The Object representing user data to be passed to - * the bridge. - */ - async loadBridges(userData) { - let FullAudioBridge = SIPBridge; - let ListenOnlyBridge = KurentoBridge; - - if (MEDIA.audio) { - const { bridges, defaultFullAudioBridge, defaultListenOnlyBridge } = - MEDIA.audio; - - this.bridges = {}; - - await Promise.all( - Object.values(bridges).map(async (bridge) => { - // eslint-disable-next-line import/no-dynamic-require, global-require - this.bridges[bridge.name] = ( - (await import(DEFAULT_AUDIO_BRIDGES_PATH + bridge.path)) || {} - ).default; - }) - ); - - if (defaultFullAudioBridge && this.bridges[defaultFullAudioBridge]) { - FullAudioBridge = this.bridges[defaultFullAudioBridge]; - } - - if (defaultListenOnlyBridge && this.bridges[defaultListenOnlyBridge]) { - ListenOnlyBridge = this.bridges[defaultListenOnlyBridge]; - } - } - - this.bridge = new FullAudioBridge(userData); - if (this.useKurento) { - this.listenOnlyBridge = new ListenOnlyBridge(userData); - } - } - setAudioMessages(messages, intl) { this.messages = messages; this.intl = intl;