@@ -24,7 +24,6 @@ var electron = require('electron');
2424var APP_VERSION = electron . remote . app . getVersion ( ) ;
2525
2626var _ = require ( 'lodash' ) ;
27- var ViewSwitcher = require ( 'ampersand-view-switcher' ) ;
2827var View = require ( 'ampersand-view' ) ;
2928var async = require ( 'async' ) ;
3029var ipc = require ( 'hadron-ipc' ) ;
@@ -117,8 +116,6 @@ var Application = View.extend({
117116 return debug ( 'router already started!' ) ;
118117 }
119118 this . router = new Router ( ) ;
120- debug ( 'Listening for page changes from the router...' ) ;
121- this . listenTo ( this . router , 'page' , this . onPageChange ) ;
122119
123120 debug ( 'Starting router...' ) ;
124121 this . router . history . start ( {
@@ -180,11 +177,6 @@ var Application = View.extend({
180177
181178 this . el = document . querySelector ( '#application' ) ;
182179 this . renderWithTemplate ( this ) ;
183- this . pageSwitcher = new ViewSwitcher ( this . queryByHook ( 'layout-container' ) , {
184- show : function ( ) {
185- document . scrollTop = 0 ;
186- }
187- } ) ;
188180 debug ( 'rendering statusbar...' ) ;
189181 this . statusComponent = app . appRegistry . getRole ( 'Application.Status' ) [ 0 ] . component ;
190182 ReactDOM . render ( React . createElement ( this . statusComponent ) , this . queryByHook ( 'statusbar' ) ) ;
@@ -258,12 +250,6 @@ var Application = View.extend({
258250 this . showOptIn ( ) ;
259251 }
260252 } ,
261- onPageChange : function ( view ) {
262- // connect dialog
263- if ( view . screenName ) {
264- this . pageSwitcher . set ( view ) ;
265- }
266- } ,
267253 onLinkClick : function ( event ) {
268254 const localLinks = require ( 'local-links' ) ;
269255 const pathname = localLinks . getLocalPathname ( event ) ;
0 commit comments