From 6f962be3224790fbe2d8e0c1984660a37816a867 Mon Sep 17 00:00:00 2001 From: Leonard Kim Date: Mon, 21 May 2018 14:35:19 -0700 Subject: [PATCH] ref(video-layout): remove unused param in addParticipantContainer --- modules/UI/videolayout/VideoLayout.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js index 33d41a9cec06..4f207ba49515 100644 --- a/modules/UI/videolayout/VideoLayout.js +++ b/modules/UI/videolayout/VideoLayout.js @@ -432,18 +432,11 @@ const VideoLayout = { * Creates or adds a participant container for the given id and smallVideo. * * @param {JitsiParticipant} user the participant to add - * @param {SmallVideo} smallVideo optional small video instance to add as a - * remote video, if undefined RemoteVideo will be created */ - addParticipantContainer(user, smallVideo) { + addParticipantContainer(user) { const id = user.getId(); - let remoteVideo; + const remoteVideo = new RemoteVideo(user, VideoLayout, eventEmitter); - if (smallVideo) { - remoteVideo = smallVideo; - } else { - remoteVideo = new RemoteVideo(user, VideoLayout, eventEmitter); - } this._setRemoteControlProperties(user, remoteVideo); this.addRemoteVideoContainer(id, remoteVideo);