Kaynağa Gözat

config: remove old backwards compatibility shim

It was added for
3ea2f00578
over 2 years ago. That's long enough!
master
Saúl Ibarra Corretgé 5 yıl önce
ebeveyn
işleme
35f934e197
1 değiştirilmiş dosya ile 1 ekleme ve 8 silme
  1. 1
    8
      react/features/base/config/reducer.js

+ 1
- 8
react/features/base/config/reducer.js Dosyayı Görüntüle

@@ -158,23 +158,16 @@ function _setConfig(state, { config }) {
158 158
  * supported by jitsi-meet.
159 159
  */
160 160
 function _translateLegacyConfig(oldValue: Object) {
161
-    // jitsi/jitsi-meet#3ea2f005787c9f49c48febaeed9dc0340fe0a01b
162
-
163 161
     let newValue = oldValue;
164 162
 
165 163
     const oldConfigToNewConfig = {
166
-        p2p: [
167
-            [ 'backToP2PDelay', 'backToP2PDelay' ],
168
-            [ 'enableP2P', 'enabled' ],
169
-            [ 'p2pStunServers', 'stunServers' ]
170
-        ],
171 164
         analytics: [
172 165
             [ 'analyticsScriptUrls', 'scriptURLs' ],
173 166
             [ 'googleAnalyticsTrackingId', 'googleAnalyticsTrackingId' ]
174 167
         ]
175 168
     };
176 169
 
177
-    // Translate the old config properties into the new config.p2p properties.
170
+    // Translate the old config properties into the new config properties.
178 171
     Object.keys(oldConfigToNewConfig).forEach(section => {
179 172
         if (typeof oldValue[section] !== 'object') {
180 173
             newValue = set(newValue, section, {});

Loading…
İptal
Kaydet