refactore: removed unused params

This commit is contained in:
quenousimporte 2023-11-15 08:43:29 +01:00
parent 81510863ed
commit 2567a59991
1 changed files with 1 additions and 7 deletions

View File

@ -1819,7 +1819,7 @@ function insert(text, cursoroffset = 0, nbtodelete = 0)
setpos(pos - nbtodelete + text.length + cursoroffset); setpos(pos - nbtodelete + text.length + cursoroffset);
} }
function searchinlist(list, customevent, index) function searchinlist(list)
{ {
return new Promise(selectitem => return new Promise(selectitem =>
{ {
@ -1839,16 +1839,10 @@ function searchinlist(list, customevent, index)
searchdialog.hidden = true; searchdialog.hidden = true;
selectitem(item); selectitem(item);
} }
elt.customevent = customevent;
filteredlist.appendChild(elt); filteredlist.appendChild(elt);
}); });
applyfilter(); applyfilter();
if (index)
{
fileindex = index;
applyfileindex();
}
filter.onkeydown = function() filter.onkeydown = function()
{ {