Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

cleanup: Remove unused code.

Boris Grozev2b6c7a51a3bf
diff --git a/react/features/base/conference/actionTypes.js b/react/features/base/conference/actionTypes.js
index 21145b0e56..1445c0c6ed 100644
--- a/react/features/base/conference/actionTypes.js
+++ b/react/features/base/conference/actionTypes.js
@@ -196,17 +196,6 @@ export const SET_PENDING_SUBJECT_CHANGE = 'SET_PENDING_SUBJECT_CHANGE';
*/
export const SET_ROOM = 'SET_ROOM';
-/**
- * The type of (redux) action, which indicates if a SIP gateway is enabled on
- * the server.
- *
- * {
- * type: SET_SIP_GATEWAY_ENABLED
- * isSIPGatewayEnabled: boolean
- * }
- */
-export const SET_SIP_GATEWAY_ENABLED = 'SET_SIP_GATEWAY_ENABLED';
-
/**
* The type of (redux) action which updates the current known status of the
* moderator features for starting participants as audio or video muted.
diff --git a/react/features/base/conference/reducer.js b/react/features/base/conference/reducer.js
index 91606c4c2b..52a450b9fb 100644
--- a/react/features/base/conference/reducer.js
+++ b/react/features/base/conference/reducer.js
@@ -20,7 +20,6 @@ import {
SET_PASSWORD,
SET_PENDING_SUBJECT_CHANGE,
SET_ROOM,
- SET_SIP_GATEWAY_ENABLED,
SET_START_MUTED_POLICY
} from './actionTypes';
import { isRoomValid } from './functions';
@@ -90,9 +89,6 @@ ReducerRegistry.register(
case SET_ROOM:
return _setRoom(state, action);
- case SET_SIP_GATEWAY_ENABLED:
- return _setSIPGatewayEnabled(state, action);
-
case SET_START_MUTED_POLICY:
return {
...state,
@@ -416,16 +412,3 @@ function _setRoom(state, action) {
});
}
-/**
- * Reduces a specific Redux action SET_SIP_GATEWAY_ENABLED of the feature
- * base/conference.
- *
- * @param {Object} state - The Redux state of the feature base/conference.
- * @param {Action} action - The Redux action SET_SIP_GATEWAY_ENABLED to reduce.
- * @private
- * @returns {Object} The new state of the feature base/conference after the
- * reduction of the specified action.
- */
-function _setSIPGatewayEnabled(state, action) {
- return set(state, 'isSIPGatewayEnabled', action.isSIPGatewayEnabled);
-}