Browse Source

fix(media_actions): remove unused actions

master
hristoterezov 8 years ago
parent
commit
f050e7026d
1 changed files with 0 additions and 28 deletions
  1. 0
    28
      react/features/base/media/actions.js

+ 0
- 28
react/features/base/media/actions.js View File

112
     };
112
     };
113
 }
113
 }
114
 
114
 
115
-/**
116
- * Toggles the mute state of the local audio track(s).
117
- *
118
- * @returns {Function}
119
- */
120
-export function toggleAudioMuted() {
121
-    return (dispatch: Dispatch<*>, getState: Function) => {
122
-        const muted = getState()['features/base/media'].audio.muted;
123
-
124
-        return dispatch(setAudioMuted(!muted));
125
-    };
126
-}
127
-
128
 /**
115
 /**
129
  * Toggles the camera facing mode. Most commonly, for example, mobile devices
116
  * Toggles the camera facing mode. Most commonly, for example, mobile devices
130
  * such as phones have a front/user-facing and a back/environment-facing
117
  * such as phones have a front/user-facing and a back/environment-facing
141
         type: TOGGLE_CAMERA_FACING_MODE
128
         type: TOGGLE_CAMERA_FACING_MODE
142
     };
129
     };
143
 }
130
 }
144
-
145
-/**
146
- * Toggles the mute state of the local video track(s).
147
- *
148
- * @returns {Function}
149
- */
150
-export function toggleVideoMuted() {
151
-    return (dispatch: Dispatch<*>, getState: Function) => {
152
-        const muted = getState()['features/base/media'].video.muted;
153
-
154
-        // XXX The following directly invokes the action creator in order to
155
-        // silence Flow.
156
-        return setVideoMuted(!muted)(dispatch, getState);
157
-    };
158
-}

Loading…
Cancel
Save