Remove obsolete source code
This commit is contained in:
parent
a561d4f302
commit
0205b9f49a
|
@ -6,6 +6,8 @@ import {
|
||||||
} from '../base/connection';
|
} from '../base/connection';
|
||||||
import { MiddlewareRegistry } from '../base/redux';
|
import { MiddlewareRegistry } from '../base/redux';
|
||||||
|
|
||||||
|
import { _getRouteToRender } from './functions';
|
||||||
|
|
||||||
MiddlewareRegistry.register(store => next => action => {
|
MiddlewareRegistry.register(store => next => action => {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case CONNECTION_ESTABLISHED:
|
case CONNECTION_ESTABLISHED:
|
||||||
|
@ -72,8 +74,8 @@ function _connectionEstablished(store, next, action) {
|
||||||
*/
|
*/
|
||||||
function _navigate({ getState }) {
|
function _navigate({ getState }) {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
const { app, getRouteToRender } = state['features/app'];
|
const { app } = state['features/app'];
|
||||||
const routeToRender = getRouteToRender && getRouteToRender(state);
|
const routeToRender = _getRouteToRender(state);
|
||||||
|
|
||||||
return app._navigate(routeToRender);
|
return app._navigate(routeToRender);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
import { SET_ROOM } from '../base/conference';
|
// @flow
|
||||||
import { SET_LOCATION_URL } from '../base/connection';
|
|
||||||
|
|
||||||
import { ReducerRegistry, set } from '../base/redux';
|
import { ReducerRegistry } from '../base/redux';
|
||||||
|
|
||||||
import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from './actionTypes';
|
import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from './actionTypes';
|
||||||
import { _getRouteToRender } from './functions';
|
|
||||||
|
|
||||||
ReducerRegistry.register('features/app', (state = {}, action) => {
|
ReducerRegistry.register('features/app', (state = {}, action) => {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
|
@ -35,12 +33,6 @@ ReducerRegistry.register('features/app', (state = {}, action) => {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SET_LOCATION_URL:
|
|
||||||
return set(state, 'getRouteToRender', undefined);
|
|
||||||
|
|
||||||
case SET_ROOM:
|
|
||||||
return set(state, 'getRouteToRender', _getRouteToRender);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return state;
|
return state;
|
||||||
|
|
Loading…
Reference in New Issue