simplification of internal structure/methods in note_tree

This commit is contained in:
azivner
2017-11-23 19:29:25 -05:00
parent acba72ec4c
commit 0ec6d4baa8
3 changed files with 12 additions and 25 deletions

View File

@@ -11,12 +11,6 @@ const treeUtils = (function() {
return treeEl.fancytree('getNodeByKey', key);
}
function getNodeByNoteTreeId(noteTreeId) {
const key = noteTree.getKeyFromNoteTreeId(noteTreeId);
return getNodeByKey(key);
}
function getNoteIdFromNotePath(notePath) {
const path = notePath.split("/");
@@ -47,7 +41,6 @@ const treeUtils = (function() {
return {
getParentProtectedStatus,
getNodeByKey,
getNodeByNoteTreeId,
getFullNameForPath,
getNotePath,
getNoteIdFromNotePath