From 8a1c477b8a9e391b07046145d3b36e487467fb7f Mon Sep 17 00:00:00 2001 From: azivner Date: Sun, 19 Nov 2017 22:32:59 -0500 Subject: [PATCH] removed glob.allNoteIds which wasn't used anymore --- public/javascripts/init.js | 1 - public/javascripts/note_editor.js | 2 -- public/javascripts/note_tree.js | 2 -- public/javascripts/tree_changes.js | 2 -- 4 files changed, 7 deletions(-) diff --git a/public/javascripts/init.js b/public/javascripts/init.js index 490c98b12..de8038589 100644 --- a/public/javascripts/init.js +++ b/public/javascripts/init.js @@ -1,7 +1,6 @@ "use strict"; const glob = { - allNoteIds: [], activeDialog: null }; diff --git a/public/javascripts/note_editor.js b/public/javascripts/note_editor.js index d74180d29..021cbc981 100644 --- a/public/javascripts/note_editor.js +++ b/public/javascripts/note_editor.js @@ -151,8 +151,6 @@ const noteEditor = (function() { extraClasses: isProtected ? "protected" : "" }; - glob.allNoteIds.push(result.note_tree_id); - newNoteCreated = true; if (target === 'after') { diff --git a/public/javascripts/note_tree.js b/public/javascripts/note_tree.js index 574f2903b..4af51b8ba 100644 --- a/public/javascripts/note_tree.js +++ b/public/javascripts/note_tree.js @@ -88,8 +88,6 @@ const noteTree = (function() { childToParents[note.note_id].push(note.note_pid); } - glob.allNoteIds = Object.keys(notesMap); - return prepareNoteTreeInner('root'); } diff --git a/public/javascripts/tree_changes.js b/public/javascripts/tree_changes.js index 07264dac3..fd56682b9 100644 --- a/public/javascripts/tree_changes.js +++ b/public/javascripts/tree_changes.js @@ -56,8 +56,6 @@ const treeChanges = (function() { node.getParent().renderTitle(); } - glob.allNoteIds = glob.allNoteIds.filter(e => e !== node.key); - recentNotes.removeRecentNote(node.note_tree_id); let next = node.getNextSibling();