@setoelkahfi / svara / commits / 12f2123

misc: removed unused code

mellbacon committed Jun 27, 2023 at 18:42 UTC 12f21236098ad33dd5564760f94822f5bc4053bd
2 files changed +2 -2
src/lib/File.ts
+1 -1
@@ -78,7 +78,7 @@ function sortTree(tree: fs.FileEntry[]) {
78 return sortedTree;
79 }
80
81 -export async function moveFile(source: string, dest: string, file: string, type: string) {
81 +export async function moveFile(source: string, dest: string, file: string) {
82 const filename = file.split(path.sep).pop();
83 if (!await dialog.confirm(`Are you sure you want to move "${filename}" from "./${source.split(path.sep).pop()}" into "./${dest.split(path.sep).pop()}?"`, {title: "Nucleus: Move File"})) {
84 return;
src/lib/FileTree.svelte
+1 -1
@@ -18,7 +18,7 @@
18 contextmenu = e.detail.contextmenu;
19 }
20 function handleSelect(e) {
21 - console.log(e.detail.node)
21 + //console.log(e.detail.node)
22 }
23 function handleDblSelect(e) {
24 addEditorTab(e.detail.node.path, e.detail.node.name);