ref(video-layout): remove unused param in addParticipantContainer

This commit is contained in:
Leonard Kim 2018-05-21 14:35:19 -07:00 committed by virtuacoplenny
parent 1e3dc20b44
commit 6f962be322
1 changed files with 2 additions and 9 deletions

View File

@ -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 <tt>RemoteVideo</tt> 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);