chore: remove unused code

This commit is contained in:
huzibaca
2024-11-21 11:13:11 +08:00
parent a89a828b35
commit 52899d4def
2 changed files with 0 additions and 23 deletions

View File

@@ -169,18 +169,6 @@ export async function cmdTestDelay(url: string) {
return invoke<number>("test_delay", { url });
}
/// service mode
export async function checkService() {
try {
const result = await invoke<any>("check_service");
if (result?.code === 0) return "active";
if (result?.code === 400) return "installed";
return "unknown";
} catch (err: any) {
return "uninstall";
}
}
export async function invoke_uwp_tool() {
return invoke<void>("invoke_uwp_tool").catch((err) =>
Notice.error(err?.message || err.toString(), 1500),