Browse Source

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 years ago
parent
commit
35f934e197
1 changed files with 1 additions and 8 deletions
  1. 1
    8
      react/features/base/config/reducer.js

+ 1
- 8
react/features/base/config/reducer.js View File

158
  * supported by jitsi-meet.
158
  * supported by jitsi-meet.
159
  */
159
  */
160
 function _translateLegacyConfig(oldValue: Object) {
160
 function _translateLegacyConfig(oldValue: Object) {
161
-    // jitsi/jitsi-meet#3ea2f005787c9f49c48febaeed9dc0340fe0a01b
162
-
163
     let newValue = oldValue;
161
     let newValue = oldValue;
164
 
162
 
165
     const oldConfigToNewConfig = {
163
     const oldConfigToNewConfig = {
166
-        p2p: [
167
-            [ 'backToP2PDelay', 'backToP2PDelay' ],
168
-            [ 'enableP2P', 'enabled' ],
169
-            [ 'p2pStunServers', 'stunServers' ]
170
-        ],
171
         analytics: [
164
         analytics: [
172
             [ 'analyticsScriptUrls', 'scriptURLs' ],
165
             [ 'analyticsScriptUrls', 'scriptURLs' ],
173
             [ 'googleAnalyticsTrackingId', 'googleAnalyticsTrackingId' ]
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
     Object.keys(oldConfigToNewConfig).forEach(section => {
171
     Object.keys(oldConfigToNewConfig).forEach(section => {
179
         if (typeof oldValue[section] !== 'object') {
172
         if (typeof oldValue[section] !== 'object') {
180
             newValue = set(newValue, section, {});
173
             newValue = set(newValue, section, {});

Loading…
Cancel
Save