Browse Source

Remove obsolete source code

j8
Lyubo Marinov 8 years ago
parent
commit
3b54c527b6

+ 0
- 8
modules/settings/Settings.js View File

24
 let localFlipX = JSON.parse(jitsiLocalStorage.getItem("localFlipX") || true);
24
 let localFlipX = JSON.parse(jitsiLocalStorage.getItem("localFlipX") || true);
25
 let displayName = UIUtil.unescapeHtml(
25
 let displayName = UIUtil.unescapeHtml(
26
     jitsiLocalStorage.getItem("displayname") || '');
26
     jitsiLocalStorage.getItem("displayname") || '');
27
-let language = jitsiLocalStorage.getItem("language");
28
 let cameraDeviceId = jitsiLocalStorage.getItem("cameraDeviceId") || '';
27
 let cameraDeviceId = jitsiLocalStorage.getItem("cameraDeviceId") || '';
29
 let micDeviceId = jitsiLocalStorage.getItem("micDeviceId") || '';
28
 let micDeviceId = jitsiLocalStorage.getItem("micDeviceId") || '';
30
 let welcomePageDisabled = JSON.parse(
29
 let welcomePageDisabled = JSON.parse(
113
         return avatarUrl;
112
         return avatarUrl;
114
     },
113
     },
115
 
114
 
116
-    getLanguage () {
117
-        return language;
118
-    },
119
-    setLanguage: function (lang) {
120
-        language = lang;
121
-    },
122
-
123
     /**
115
     /**
124
      * Sets new flipX state of local video and saves it to the local storage.
116
      * Sets new flipX state of local video and saves it to the local storage.
125
      * @param {string} val flipX state of local video
117
      * @param {string} val flipX state of local video

+ 1
- 2
react/features/app/functions.web.js View File

10
 import URLProcessor from '../../../modules/config/URLProcessor';
10
 import URLProcessor from '../../../modules/config/URLProcessor';
11
 import KeyboardShortcut
11
 import KeyboardShortcut
12
     from '../../../modules/keyboardshortcut/keyboardshortcut';
12
     from '../../../modules/keyboardshortcut/keyboardshortcut';
13
-import settings from '../../../modules/settings/Settings';
14
 import getTokenData from '../../../modules/tokendata/TokenData';
13
 import getTokenData from '../../../modules/tokendata/TokenData';
15
 import JitsiMeetLogStorage from '../../../modules/util/JitsiMeetLogStorage';
14
 import JitsiMeetLogStorage from '../../../modules/util/JitsiMeetLogStorage';
16
 
15
 
62
     // with jitsi meet.
61
     // with jitsi meet.
63
     APP.API.init(APP.tokenData.jwt ? { forceEnable: true } : undefined);
62
     APP.API.init(APP.tokenData.jwt ? { forceEnable: true } : undefined);
64
 
63
 
65
-    APP.translation.init(settings.getLanguage());
64
+    APP.translation.init();
66
 }
65
 }
67
 
66
 
68
 /**
67
 /**

+ 3
- 4
react/features/base/connection/actions.web.js View File

68
 
68
 
69
             APP.UI.initConference();
69
             APP.UI.initConference();
70
 
70
 
71
-            APP.UI.addListener(UIEvents.LANG_CHANGED, language => {
72
-                APP.translation.setLanguage(language);
73
-                APP.settings.setLanguage(language);
74
-            });
71
+            APP.UI.addListener(
72
+                    UIEvents.LANG_CHANGED,
73
+                    language => APP.translation.setLanguage(language));
75
 
74
 
76
             APP.keyboardshortcut.init();
75
             APP.keyboardshortcut.init();
77
 
76
 

Loading…
Cancel
Save