From 648dfcd2aa6e37681cd8977fd8708f88112cabfe Mon Sep 17 00:00:00 2001 From: Vellum Assistant Date: Wed, 13 May 2026 17:33:51 +0000 Subject: [PATCH] fix(macos): remove dead deleteTokenFile helper --- .../App/Auth/GuardianTokenFileReader.swift | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/clients/shared/App/Auth/GuardianTokenFileReader.swift b/clients/shared/App/Auth/GuardianTokenFileReader.swift index 78c01dd3e0f..41963a49753 100644 --- a/clients/shared/App/Auth/GuardianTokenFileReader.swift +++ b/clients/shared/App/Auth/GuardianTokenFileReader.swift @@ -188,24 +188,6 @@ public enum GuardianTokenFileReader { : .importValid(creds) } - /// Deletes any CLI-persisted guardian token on disk for the given - /// assistant. Used by forced re-bootstrap paths to avoid re-importing a - /// stale/revoked token that shares the same file. A missing file is - /// treated as success. - @discardableResult - public static func deleteTokenFile(assistantId: String) -> Bool { - let path = guardianTokenPath(for: assistantId, paths: VellumPaths.current) - guard FileManager.default.fileExists(atPath: path) else { return true } - do { - try FileManager.default.removeItem(atPath: path) - log.info("Deleted guardian token file at \(path, privacy: .public)") - return true - } catch { - log.warning("Failed to delete guardian token file at \(path, privacy: .public): \(error.localizedDescription, privacy: .public)") - return false - } - } - /// Deletes the guardian-token file for the given assistant across every /// `VellumEnvironment`'s config dir. ///