Removes an unused variable.

This commit is contained in:
Boris Grozev 2014-10-13 10:38:07 +03:00
parent 8ed3b47850
commit 63a9cb1e19
2 changed files with 0 additions and 6 deletions

1
app.js
View File

@ -962,7 +962,6 @@ function toggleVideo() {
*/
function toggleAudio() {
if (!(connection && connection.jingle.localAudio)) {
preMuted = true;
// We still click the button.
buttonClick("#mute", "icon-microphone icon-mic-disabled");
return;

View File

@ -1,5 +1,4 @@
var VideoLayout = (function (my) {
var preMuted = false;
var currentDominantSpeaker = null;
var lastNCount = config.channelLastN;
var lastNEndpointsCache = [];
@ -14,10 +13,6 @@ var VideoLayout = (function (my) {
RTC.attachMediaStream($('#localAudio'), stream);
document.getElementById('localAudio').autoplay = true;
document.getElementById('localAudio').volume = 0;
if (preMuted) {
toggleAudio();
preMuted = false;
}
};
my.changeLocalVideo = function(stream, flipX) {