From 192a78188c3464aeefc0e28eb1daac5e94e22b77 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Wed, 25 Sep 2019 14:07:41 -0600 Subject: [PATCH] Remove unused currentView state variable --- app/appListeners.js | 6 ------ app/appState.js | 1 - 2 files changed, 7 deletions(-) diff --git a/app/appListeners.js b/app/appListeners.js index eb8ba20..8c5094d 100644 --- a/app/appListeners.js +++ b/app/appListeners.js @@ -12,12 +12,6 @@ export const appListeners = (app, state, emitter) => { } }); - emitter.on('change-view', newView => { - // Change the view and call render. Makes it easier to call within views. - state.currentView = newView; - emitter.emit('render', () => { }); - }); - emitter.on('set-language', newLanguage => { app.setSettingsItem('lang', newLanguage); state.language = newLanguage; diff --git a/app/appState.js b/app/appState.js index 609fc22..9dfcfee 100644 --- a/app/appState.js +++ b/app/appState.js @@ -8,7 +8,6 @@ export const appState = (app, state, emitter) => { }); } else { // Default state variables - state.currentView = 'home'; state.language = app.getSettingsItem('lang') ? app.getSettingsItem('lang') : (navigator.language || navigator.userLanguage).split('-')[0]; state.viewStates = {}; state.isLoggedIn = false;