Skip to content

Commit c2c514a

Browse files
walesch-yanmarcus-oscarsson
authored andcommitted
cleanup remoteAccess actions
1 parent b0e0cff commit c2c514a

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

ui/src/actions/remoteAccess.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function requestControl(message) {
5555
};
5656
}
5757

58-
export function cancelControlRequest() {
58+
function cancelControlRequest() {
5959
return async (dispatch) => {
6060
await sendCancelControlRequest();
6161
dispatch(getLoginInfo());
@@ -108,10 +108,6 @@ export function updateTimeoutGivesControl(timeoutGivesControl) {
108108
};
109109
}
110110

111-
export function setObservers(observers) {
112-
return { type: 'SET_OBSERVERS', observers };
113-
}
114-
115111
export function resetChatMessageCount() {
116112
return async (dispatch) => {
117113
await sendSetAllMessagesRead();

ui/src/reducers/remoteAccess.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ function remoteAccessReducer(state = INITIAL_STATE, action = {}) {
2121
case 'SET_MASTER': {
2222
return { ...state, sid: action.sid };
2323
}
24-
case 'SET_OBSERVERS': {
25-
return { ...state, observers: action.observers };
26-
}
2724
case 'SET_ALLOW_REMOTE': {
2825
return { ...state, allowRemote: action.allow };
2926
}

0 commit comments

Comments
 (0)