Преглед на файлове

cleanup: Remove unused code.

master
Boris Grozev преди 4 години
родител
ревизия
2b6c7a51a3
променени са 2 файла, в които са добавени 0 реда и са изтрити 28 реда
  1. 0
    11
      react/features/base/conference/actionTypes.js
  2. 0
    17
      react/features/base/conference/reducer.js

+ 0
- 11
react/features/base/conference/actionTypes.js Целия файл

196
  */
196
  */
197
 export const SET_ROOM = 'SET_ROOM';
197
 export const SET_ROOM = 'SET_ROOM';
198
 
198
 
199
-/**
200
- * The type of (redux) action, which indicates if a SIP gateway is enabled on
201
- * the server.
202
- *
203
- * {
204
- *     type: SET_SIP_GATEWAY_ENABLED
205
- *     isSIPGatewayEnabled: boolean
206
- * }
207
- */
208
-export const SET_SIP_GATEWAY_ENABLED = 'SET_SIP_GATEWAY_ENABLED';
209
-
210
 /**
199
 /**
211
  * The type of (redux) action which updates the current known status of the
200
  * The type of (redux) action which updates the current known status of the
212
  * moderator features for starting participants as audio or video muted.
201
  * moderator features for starting participants as audio or video muted.

+ 0
- 17
react/features/base/conference/reducer.js Целия файл

20
     SET_PASSWORD,
20
     SET_PASSWORD,
21
     SET_PENDING_SUBJECT_CHANGE,
21
     SET_PENDING_SUBJECT_CHANGE,
22
     SET_ROOM,
22
     SET_ROOM,
23
-    SET_SIP_GATEWAY_ENABLED,
24
     SET_START_MUTED_POLICY
23
     SET_START_MUTED_POLICY
25
 } from './actionTypes';
24
 } from './actionTypes';
26
 import { isRoomValid } from './functions';
25
 import { isRoomValid } from './functions';
90
         case SET_ROOM:
89
         case SET_ROOM:
91
             return _setRoom(state, action);
90
             return _setRoom(state, action);
92
 
91
 
93
-        case SET_SIP_GATEWAY_ENABLED:
94
-            return _setSIPGatewayEnabled(state, action);
95
-
96
         case SET_START_MUTED_POLICY:
92
         case SET_START_MUTED_POLICY:
97
             return {
93
             return {
98
                 ...state,
94
                 ...state,
416
     });
412
     });
417
 }
413
 }
418
 
414
 
419
-/**
420
- * Reduces a specific Redux action SET_SIP_GATEWAY_ENABLED of the feature
421
- * base/conference.
422
- *
423
- * @param {Object} state - The Redux state of the feature base/conference.
424
- * @param {Action} action - The Redux action SET_SIP_GATEWAY_ENABLED to reduce.
425
- * @private
426
- * @returns {Object} The new state of the feature base/conference after the
427
- * reduction of the specified action.
428
- */
429
-function _setSIPGatewayEnabled(state, action) {
430
-    return set(state, 'isSIPGatewayEnabled', action.isSIPGatewayEnabled);
431
-}

Loading…
Отказ
Запис