diff --git a/Sources/XiEditor/AppDelegate.swift b/Sources/XiEditor/AppDelegate.swift index 78c15f3e..d353a301 100644 --- a/Sources/XiEditor/AppDelegate.swift +++ b/Sources/XiEditor/AppDelegate.swift @@ -123,9 +123,6 @@ class AppDelegate: NSObject, NSApplicationDelegate { return applicationDirectory }() - // The default name for XiEditor's error logs - let defaultCoreLogName = "xi_tmp.log" - lazy var errorLogDirectory: URL? = { let logDirectory = FileManager.default.urls( for: .libraryDirectory, @@ -191,17 +188,6 @@ class AppDelegate: NSObject, NSApplicationDelegate { renameCliToggle() } - // Clean up temporary Xi stderr log - func applicationWillTerminate(_ notification: Notification) { - if let tmpErrLogFile = errorLogDirectory?.appendingPathComponent(defaultCoreLogName) { - do { - try FileManager.default.removeItem(at: tmpErrLogFile) - } catch let err as NSError { - print("Failed to remove temporary log file. \(err)") - } - } - } - // MARK: - CLI Menu Items @IBOutlet weak var cliToggle: NSMenuItem!