From 0205b9f49a79a50b521ed639250fe78af52725dd Mon Sep 17 00:00:00 2001 From: Lyubo Marinov Date: Tue, 17 Oct 2017 17:09:52 -0500 Subject: [PATCH] Remove obsolete source code --- react/features/app/middleware.js | 6 ++++-- react/features/app/reducer.js | 12 ++---------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/react/features/app/middleware.js b/react/features/app/middleware.js index a9e13223f..8fd5eee61 100644 --- a/react/features/app/middleware.js +++ b/react/features/app/middleware.js @@ -6,6 +6,8 @@ import { } from '../base/connection'; import { MiddlewareRegistry } from '../base/redux'; +import { _getRouteToRender } from './functions'; + MiddlewareRegistry.register(store => next => action => { switch (action.type) { case CONNECTION_ESTABLISHED: @@ -72,8 +74,8 @@ function _connectionEstablished(store, next, action) { */ function _navigate({ getState }) { const state = getState(); - const { app, getRouteToRender } = state['features/app']; - const routeToRender = getRouteToRender && getRouteToRender(state); + const { app } = state['features/app']; + const routeToRender = _getRouteToRender(state); return app._navigate(routeToRender); } diff --git a/react/features/app/reducer.js b/react/features/app/reducer.js index 3e07d6d86..07cfce539 100644 --- a/react/features/app/reducer.js +++ b/react/features/app/reducer.js @@ -1,10 +1,8 @@ -import { SET_ROOM } from '../base/conference'; -import { SET_LOCATION_URL } from '../base/connection'; +// @flow -import { ReducerRegistry, set } from '../base/redux'; +import { ReducerRegistry } from '../base/redux'; import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from './actionTypes'; -import { _getRouteToRender } from './functions'; ReducerRegistry.register('features/app', (state = {}, action) => { switch (action.type) { @@ -35,12 +33,6 @@ ReducerRegistry.register('features/app', (state = {}, action) => { }; } break; - - case SET_LOCATION_URL: - return set(state, 'getRouteToRender', undefined); - - case SET_ROOM: - return set(state, 'getRouteToRender', _getRouteToRender); } return state;