From 2ece3ef07aad63652982b50cbbe7a80921a64ba1 Mon Sep 17 00:00:00 2001 From: Yishi Lin Date: Sun, 21 Jul 2019 02:25:14 +0800 Subject: [PATCH] Clean up codes in PGPAgent After the migration, there is nothing there. --- passKit/Models/PGPAgent.swift | 7 ------- 1 file changed, 7 deletions(-) diff --git a/passKit/Models/PGPAgent.swift b/passKit/Models/PGPAgent.swift index 72a1a42..e3c521a 100644 --- a/passKit/Models/PGPAgent.swift +++ b/passKit/Models/PGPAgent.swift @@ -167,13 +167,6 @@ public class PGPAgent { } public func removePGPKeys() { - try? FileManager.default.removeItem(atPath: Globals.pgpPublicKeyPath) - try? FileManager.default.removeItem(atPath: Globals.pgpPrivateKeyPath) - SharedDefaults.remove(.pgpKeySource) - SharedDefaults.remove(.pgpPrivateKeyURL) - SharedDefaults.remove(.pgpPublicKeyURL) - SharedDefaults.remove(.pgpPublicKeyArmor) - SharedDefaults.remove(.pgpPrivateKeyArmor) AppKeychain.removeContent(for: PgpKey.PUBLIC.getKeychainKey()) AppKeychain.removeContent(for: PgpKey.PRIVATE.getKeychainKey()) passphrase = nil