Explorar el Código

remove unnecessary code

Yuki Takei hace 4 años
padre
commit
cd6201cbf0
Se han modificado 1 ficheros con 0 adiciones y 7 borrados
  1. 0 7
      packages/app/src/client/services/NavigationContainer.js

+ 0 - 7
packages/app/src/client/services/NavigationContainer.js

@@ -31,8 +31,6 @@ export default class NavigationContainer extends Container {
       isDrawerMode: null,
       isDrawerOpened: false,
 
-      sidebarContentsId: localStorage.sidebarContentsId || 'recent',
-
       isScrollTop: true,
     };
 
@@ -186,11 +184,6 @@ export default class NavigationContainer extends Container {
     this.setState({ isDrawerMode, isDrawerOpened });
   }
 
-  selectSidebarContents(contentsId) {
-    window.localStorage.setItem('sidebarContentsId', contentsId);
-    this.setState({ sidebarContentsId: contentsId });
-  }
-
   /**
    * Function that implements the click event for realizing smooth scroll
    * @param {array} elements