From 8f5486064b688b2519193bb04dc16f0e88f970a5 Mon Sep 17 00:00:00 2001 From: Tongyuxiu Zhou <3232825542@qq.com> Date: Thu, 11 Dec 2025 20:13:16 +0800 Subject: [PATCH] refactor: remove no-longer-used ipc --- src/main/utils/ipc.ts | 6 ------ src/renderer/src/utils/ipc.ts | 4 ---- 2 files changed, 10 deletions(-) diff --git a/src/main/utils/ipc.ts b/src/main/utils/ipc.ts index bcdbf83..c3b0dad 100644 --- a/src/main/utils/ipc.ts +++ b/src/main/utils/ipc.ts @@ -324,12 +324,6 @@ export function registerIpcMainHandlers(): void { ipcMain.handle('writeTheme', (_e, theme, css) => ipcErrorWrapper(writeTheme)(theme, css)) ipcMain.handle('applyTheme', (_e, theme) => ipcErrorWrapper(applyTheme)(theme)) ipcMain.handle('copyEnv', (_e, type) => ipcErrorWrapper(copyEnv)(type)) - ipcMain.handle('alert', (_e, msg) => { - dialog.showErrorBox('Clash Party', msg) - }) - ipcMain.handle('showDetailedError', (_e, title, message) => { - dialog.showErrorBox(title, message) - }) ipcMain.handle('getSmartOverrideContent', async () => { const { getOverrideItem } = await import('../config') try { diff --git a/src/renderer/src/utils/ipc.ts b/src/renderer/src/utils/ipc.ts index c633307..7fb550c 100644 --- a/src/renderer/src/utils/ipc.ts +++ b/src/renderer/src/utils/ipc.ts @@ -108,10 +108,6 @@ export async function mihomoSmartFlushCache(configName?: string): Promise return ipcErrorWrapper(await window.electron.ipcRenderer.invoke('mihomoSmartFlushCache', configName)) } -export async function showDetailedError(title: string, message: string): Promise { - return ipcErrorWrapper(await window.electron.ipcRenderer.invoke('showDetailedError', title, message)) -} - export async function getSmartOverrideContent(): Promise { return ipcErrorWrapper(await window.electron.ipcRenderer.invoke('getSmartOverrideContent')) }