Skip to content

Commit

Permalink
Clean up codes in PGPAgent
Browse files Browse the repository at this point in the history
After the migration, there is nothing there.
  • Loading branch information
yishilin14 committed Jul 20, 2019
1 parent e967bb1 commit 2ece3ef
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions passKit/Models/PGPAgent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ece3ef

Please sign in to comment.