mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 09:16:45 +01:00
simplification of internal structure/methods in note_tree
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user