From c3438a4d94c2f5e0194b9a05375c42a329c84cb7 Mon Sep 17 00:00:00 2001 From: Claas Date: Fri, 15 Sep 2023 13:43:33 +0200 Subject: [PATCH] Remove unused code --- src/lib/SerialPorts.svelte | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/lib/SerialPorts.svelte b/src/lib/SerialPorts.svelte index a2387e8..58d36b4 100644 --- a/src/lib/SerialPorts.svelte +++ b/src/lib/SerialPorts.svelte @@ -43,28 +43,6 @@ // TODO remove this hack to force rerender availablePorts = availablePorts; } - - function open(port: SerialPort) { - return async () => { - console.log("Opening port", port); - await port.open({ baudRate: 9600 }); - quickUpdateHack(); - console.log("Port opened", port.getInfo()); - }; - } - - function close(port: SerialPort) { - return async () => { - await port.close(); - quickUpdateHack(); - }; - } - - function openPort(port: SerialPort) { - return async (event: SubmitEvent) => { - event.preventDefault(); - }; - }