fix(media_actions): remove unused actions

This commit is contained in:
hristoterezov 2017-10-09 13:27:02 -05:00 committed by yanas
parent 64b11b571f
commit f050e7026d
1 changed files with 0 additions and 28 deletions

View File

@ -112,19 +112,6 @@ export function setVideoMuted(
}; };
} }
/**
* Toggles the mute state of the local audio track(s).
*
* @returns {Function}
*/
export function toggleAudioMuted() {
return (dispatch: Dispatch<*>, getState: Function) => {
const muted = getState()['features/base/media'].audio.muted;
return dispatch(setAudioMuted(!muted));
};
}
/** /**
* Toggles the camera facing mode. Most commonly, for example, mobile devices * Toggles the camera facing mode. Most commonly, for example, mobile devices
* such as phones have a front/user-facing and a back/environment-facing * such as phones have a front/user-facing and a back/environment-facing
@ -141,18 +128,3 @@ export function toggleCameraFacingMode() {
type: TOGGLE_CAMERA_FACING_MODE type: TOGGLE_CAMERA_FACING_MODE
}; };
} }
/**
* Toggles the mute state of the local video track(s).
*
* @returns {Function}
*/
export function toggleVideoMuted() {
return (dispatch: Dispatch<*>, getState: Function) => {
const muted = getState()['features/base/media'].video.muted;
// XXX The following directly invokes the action creator in order to
// silence Flow.
return setVideoMuted(!muted)(dispatch, getState);
};
}