From 1f8e398653fd43b8c6c5b513cb9dabbd811afb79 Mon Sep 17 00:00:00 2001 From: Ivan Grachyov Date: Sun, 1 Aug 2021 18:22:22 +0300 Subject: [PATCH] Remove accounts legacy from keychain --- Encrypted Ink/Services/Keychain.swift | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Encrypted Ink/Services/Keychain.swift b/Encrypted Ink/Services/Keychain.swift index 70460359..eb8506b9 100644 --- a/Encrypted Ink/Services/Keychain.swift +++ b/Encrypted Ink/Services/Keychain.swift @@ -65,17 +65,6 @@ struct Keychain { removeData(forKey: .legacyAccounts) } - // TODO: remove - var accounts: [LegacyAccountWithKey] { - return (try? getLegacyAccounts()) ?? [] - } - - // TODO: remove - func save(accounts: [LegacyAccountWithKey]) throws { - guard let data = try? JSONEncoder().encode(accounts) else { return } - save(data: data, key: .legacyAccounts) - } - // MARK: - WalletCore func getAllWalletsIds() -> [String] {