Remove obsolete source code

This commit is contained in:
Lyubo Marinov 2017-02-28 22:53:45 -06:00
parent 18368fefaa
commit 3b54c527b6
3 changed files with 4 additions and 14 deletions

View File

@ -24,7 +24,6 @@ if (!avatarId) {
let localFlipX = JSON.parse(jitsiLocalStorage.getItem("localFlipX") || true);
let displayName = UIUtil.unescapeHtml(
jitsiLocalStorage.getItem("displayname") || '');
let language = jitsiLocalStorage.getItem("language");
let cameraDeviceId = jitsiLocalStorage.getItem("cameraDeviceId") || '';
let micDeviceId = jitsiLocalStorage.getItem("micDeviceId") || '';
let welcomePageDisabled = JSON.parse(
@ -113,13 +112,6 @@ export default {
return avatarUrl;
},
getLanguage () {
return language;
},
setLanguage: function (lang) {
language = lang;
},
/**
* Sets new flipX state of local video and saves it to the local storage.
* @param {string} val flipX state of local video

View File

@ -10,7 +10,6 @@ import { WelcomePage } from '../welcome';
import URLProcessor from '../../../modules/config/URLProcessor';
import KeyboardShortcut
from '../../../modules/keyboardshortcut/keyboardshortcut';
import settings from '../../../modules/settings/Settings';
import getTokenData from '../../../modules/tokendata/TokenData';
import JitsiMeetLogStorage from '../../../modules/util/JitsiMeetLogStorage';
@ -62,7 +61,7 @@ export function init() {
// with jitsi meet.
APP.API.init(APP.tokenData.jwt ? { forceEnable: true } : undefined);
APP.translation.init(settings.getLanguage());
APP.translation.init();
}
/**

View File

@ -68,10 +68,9 @@ export function connect() {
APP.UI.initConference();
APP.UI.addListener(UIEvents.LANG_CHANGED, language => {
APP.translation.setLanguage(language);
APP.settings.setLanguage(language);
});
APP.UI.addListener(
UIEvents.LANG_CHANGED,
language => APP.translation.setLanguage(language));
APP.keyboardshortcut.init();