diff --git a/main.js b/main.js index be44107..a30ce69 100644 --- a/main.js +++ b/main.js @@ -502,23 +502,6 @@ function savesettings() localStorage.setItem("settings", JSON.stringify(settings)); } -function descendants(note) -{ - var list = [note]; - var result = []; - - while (list.length) - { - var current = list.shift(); - if (result.indexOf(current) == -1) - { - result.push(current); - list = list.concat(children(current)); - } - } - return result; -} - function children(guid) { var content = localStorage.getItem(guid); @@ -1115,19 +1098,6 @@ function downloadnote() download(title.value + ".md", md.value); } -function remotecallfailed(error) -{ - if (error) - { - console.warn(error); - showtemporaryinfo("Error: " + error); - } - else - { - console.warn("remotecallfailed without details"); - } -} - function getguid(title) { return Object.keys(metadata).find(guid => metadata[guid].title === title);