소스 검색

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,17 +196,6 @@ export const SET_PENDING_SUBJECT_CHANGE = 'SET_PENDING_SUBJECT_CHANGE';
196 196
  */
197 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 200
  * The type of (redux) action which updates the current known status of the
212 201
  * moderator features for starting participants as audio or video muted.

+ 0
- 17
react/features/base/conference/reducer.js 파일 보기

@@ -20,7 +20,6 @@ import {
20 20
     SET_PASSWORD,
21 21
     SET_PENDING_SUBJECT_CHANGE,
22 22
     SET_ROOM,
23
-    SET_SIP_GATEWAY_ENABLED,
24 23
     SET_START_MUTED_POLICY
25 24
 } from './actionTypes';
26 25
 import { isRoomValid } from './functions';
@@ -90,9 +89,6 @@ ReducerRegistry.register(
90 89
         case SET_ROOM:
91 90
             return _setRoom(state, action);
92 91
 
93
-        case SET_SIP_GATEWAY_ENABLED:
94
-            return _setSIPGatewayEnabled(state, action);
95
-
96 92
         case SET_START_MUTED_POLICY:
97 93
             return {
98 94
                 ...state,
@@ -416,16 +412,3 @@ function _setRoom(state, action) {
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…
취소
저장