Browse Source

Remove obsolete source code

master
Lyubo Marinov 7 years ago
parent
commit
0205b9f49a
2 changed files with 6 additions and 12 deletions
  1. 4
    2
      react/features/app/middleware.js
  2. 2
    10
      react/features/app/reducer.js

+ 4
- 2
react/features/app/middleware.js View File

6
 } from '../base/connection';
6
 } from '../base/connection';
7
 import { MiddlewareRegistry } from '../base/redux';
7
 import { MiddlewareRegistry } from '../base/redux';
8
 
8
 
9
+import { _getRouteToRender } from './functions';
10
+
9
 MiddlewareRegistry.register(store => next => action => {
11
 MiddlewareRegistry.register(store => next => action => {
10
     switch (action.type) {
12
     switch (action.type) {
11
     case CONNECTION_ESTABLISHED:
13
     case CONNECTION_ESTABLISHED:
72
  */
74
  */
73
 function _navigate({ getState }) {
75
 function _navigate({ getState }) {
74
     const state = getState();
76
     const state = getState();
75
-    const { app, getRouteToRender } = state['features/app'];
76
-    const routeToRender = getRouteToRender && getRouteToRender(state);
77
+    const { app } = state['features/app'];
78
+    const routeToRender = _getRouteToRender(state);
77
 
79
 
78
     return app._navigate(routeToRender);
80
     return app._navigate(routeToRender);
79
 }
81
 }

+ 2
- 10
react/features/app/reducer.js View File

1
-import { SET_ROOM } from '../base/conference';
2
-import { SET_LOCATION_URL } from '../base/connection';
1
+// @flow
3
 
2
 
4
-import { ReducerRegistry, set } from '../base/redux';
3
+import { ReducerRegistry } from '../base/redux';
5
 
4
 
6
 import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from './actionTypes';
5
 import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from './actionTypes';
7
-import { _getRouteToRender } from './functions';
8
 
6
 
9
 ReducerRegistry.register('features/app', (state = {}, action) => {
7
 ReducerRegistry.register('features/app', (state = {}, action) => {
10
     switch (action.type) {
8
     switch (action.type) {
35
             };
33
             };
36
         }
34
         }
37
         break;
35
         break;
38
-
39
-    case SET_LOCATION_URL:
40
-        return set(state, 'getRouteToRender', undefined);
41
-
42
-    case SET_ROOM:
43
-        return set(state, 'getRouteToRender', _getRouteToRender);
44
     }
36
     }
45
 
37
 
46
     return state;
38
     return state;

Loading…
Cancel
Save