Remove unused 'tapped' and 'blank' functions

This commit is contained in:
Joey Payne 2016-03-15 08:03:43 -06:00
commit 3f5440ab16
2 changed files with 2 additions and 31 deletions

View file

@ -164,30 +164,6 @@ export default class LibraryNav extends React.Component {
} }
} }
entriesTapped = (i, item, type, ev) => {
};
starredTapped = (i, item, type, ev) => {
};
recentsTapped = (i, item, type, ev) => {
};
trashTapped = (i, item, type, ev) => {
};
allNotesTapped = (i, item, type, ev) => {
};
blank(){
}
scrollToRenamedNotebook = (original) => { scrollToRenamedNotebook = (original) => {
var newIndex = 0 var newIndex = 0
for (var j = 0; j < this.props.navigation.notebooks.length; j++){ for (var j = 0; j < this.props.navigation.notebooks.length; j++){
@ -207,7 +183,6 @@ export default class LibraryNav extends React.Component {
}) })
} }
} }
}; };
initDefaultNotebookPath = (notebook) => { initDefaultNotebookPath = (notebook) => {
@ -237,7 +212,6 @@ export default class LibraryNav extends React.Component {
this.createNotebookMeta(notebook, callback) this.createNotebookMeta(notebook, callback)
} }
}) })
}; };
createNewNotebook = (callback) => { createNewNotebook = (callback) => {
@ -270,7 +244,6 @@ export default class LibraryNav extends React.Component {
callback(notebook, err) callback(notebook, err)
} }
}) })
}; };
newNotebookUnfocus = (i) => { newNotebookUnfocus = (i) => {
@ -313,9 +286,11 @@ export default class LibraryNav extends React.Component {
menuItemClicked = (i, ev) => { menuItemClicked = (i, ev) => {
this.refs.notebookList.setIndex(-1) this.refs.notebookList.setIndex(-1)
var item = this.props.navigation.menuItems[i] var item = this.props.navigation.menuItems[i]
var type = 'leftClick' var type = 'leftClick'
var nativeEvent = ev.nativeEvent var nativeEvent = ev.nativeEvent
if(nativeEvent.button == 2){ if(nativeEvent.button == 2){
//Right click //Right click
type = 'rightClick' type = 'rightClick'

View file

@ -43,9 +43,6 @@ class App extends React.Component {
} }
} }
entriesTapped = () => {
};
handleRequestClose = () => { handleRequestClose = () => {
this.props.contextMenuActions.closeContextMenu() this.props.contextMenuActions.closeContextMenu()
}; };
@ -82,7 +79,6 @@ class App extends React.Component {
<LibraryNav <LibraryNav
id="library-nav" id="library-nav"
ref="libraryNav" ref="libraryNav"
entriesTapped={this.entriesTapped}
className="left inline fill-height" className="left inline fill-height"
navigation={navigation} navigation={navigation}
{...navigationActions} {...navigationActions}