From 265024cb4567ea60c2552e68222c87ab546e1170 Mon Sep 17 00:00:00 2001 From: Philippe Potvin Date: Fri, 4 Nov 2016 13:52:03 -0400 Subject: [PATCH] Remove unused blur/focus (#947) --- lib/actions/sessions.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/lib/actions/sessions.js b/lib/actions/sessions.js index 7cdf690c..e97dbcea 100644 --- a/lib/actions/sessions.js +++ b/lib/actions/sessions.js @@ -101,21 +101,10 @@ export const userExitSession = createExitAction(SESSION_USER_EXIT); export const ptyExitSession = createExitAction(SESSION_PTY_EXIT); export function setActiveSession(uid) { - return (dispatch, getState) => { - const state = getState(); - const prevUid = state.sessions.activeUid; + return dispatch => { dispatch({ type: SESSION_SET_ACTIVE, - uid, - effect() { - // This goes away when we are able to poll - // for the title ourseleves, instead of relying - // on Session and focus/blur to subscribe - if (prevUid) { - rpc.emit('blur', {uid: prevUid}); - } - rpc.emit('focus', {uid}); - } + uid }); }; }