This commit is contained in:
quenousimporte 2024-02-16 16:10:13 +01:00
parent 057d27221a
commit 02eb28d4e0
1 changed files with 0 additions and 30 deletions

30
main.js
View File

@ -502,23 +502,6 @@ function savesettings()
localStorage.setItem("settings", JSON.stringify(settings)); 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) function children(guid)
{ {
var content = localStorage.getItem(guid); var content = localStorage.getItem(guid);
@ -1115,19 +1098,6 @@ function downloadnote()
download(title.value + ".md", md.value); 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) function getguid(title)
{ {
return Object.keys(metadata).find(guid => metadata[guid].title === title); return Object.keys(metadata).find(guid => metadata[guid].title === title);