From b8dfd4d85b52d80075558d6aca767ced1760604f Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Fri, 1 May 2026 01:26:39 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=20reminderLog=20?= =?UTF-8?q?=E6=96=B9=E6=B3=95=EF=BC=8C=E4=BB=85=E4=BF=9D=E7=95=99=20agentL?= =?UTF-8?q?og=20=E8=B7=AF=E5=BE=84=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/App/AppDelegate.swift | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Sources/App/AppDelegate.swift b/Sources/App/AppDelegate.swift index 99d71ec..7b9aaad 100644 --- a/Sources/App/AppDelegate.swift +++ b/Sources/App/AppDelegate.swift @@ -470,21 +470,6 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSSpeechSynthesizerDel } } - /// Reminder 专用文件日志,写入 ~/Library/Logs/VoiceInput/reminder.log - private func reminderLog(_ msg: String) { - let logPath = logDir + "/reminder.log" - let ts = ISO8601DateFormatter().string(from: Date()) - let line = "[\(ts)] \(msg)\n" - if let handle = FileHandle(forWritingAtPath: logPath) { - handle.seekToEndOfFile() - handle.write(line.data(using: .utf8)!) - handle.closeFile() - } else { - // 文件不存在时创建 - try? line.write(toFile: logPath, atomically: true, encoding: .utf8) - } - } - private func showAgentNotch() { showAgentNotchInternal(isTextInput: false) }