From f92748871ea4aa682075e3709466863dcb13ba36 Mon Sep 17 00:00:00 2001 From: vcoppe Date: Fri, 3 May 2024 22:17:38 +0200 Subject: [PATCH] remove unused parameter --- website/src/lib/db.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/src/lib/db.ts b/website/src/lib/db.ts index 60d82caf..7acd6ead 100644 --- a/website/src/lib/db.ts +++ b/website/src/lib/db.ts @@ -114,7 +114,7 @@ export const canRedo: Readable = derived([patchIndex, patches], ([$patc export function applyGlobal(callback: (files: Map) => void) { const [newFileState, patch, inversePatch] = produceWithPatches(fileState, callback); - appendPatches(patch, inversePatch, true); + appendPatches(patch, inversePatch); return commitFileStateChange(newFileState, patch); } @@ -129,12 +129,12 @@ function applyToFiles(fileIds: string[], callback: (file: GPXFile) => void) { }); }); - appendPatches(patch, inversePatch, false); + appendPatches(patch, inversePatch); return commitFileStateChange(newFileState, patch); } -async function appendPatches(patch: Patch[], inversePatch: Patch[], global: boolean) { +async function appendPatches(patch: Patch[], inversePatch: Patch[]) { if (get(patchIndex) !== undefined) { db.patches.where(':id').above(get(patchIndex)).delete(); }