Skip to content

Commit

Permalink
Merge pull request #75 from WalletConnect/remove-secure-storage
Browse files Browse the repository at this point in the history
Remove unused secure storage
  • Loading branch information
llbartekll authored Feb 11, 2022
2 parents 13c11ac + 2e8ec8f commit 0f0f258
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 95 deletions.
34 changes: 0 additions & 34 deletions Sources/WalletConnect/Storage/SecureStorage.swift

This file was deleted.

3 changes: 0 additions & 3 deletions Sources/WalletConnect/WalletConnectClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public final class WalletConnectClient {
private let sessionEngine: SessionEngine
private let relay: WalletConnectRelaying
private let crypto: Crypto
private let secureStorage: SecureStorage
private let pairingQueue = DispatchQueue(label: "com.walletconnect.sdk.client.pairing", qos: .userInitiated)
private let history: JsonRpcHistory

Expand All @@ -50,7 +49,6 @@ public final class WalletConnectClient {
self.logger = logger
// try? keychain.deleteAll() // Use for cleanup while lifecycles are not handled yet, but FIXME whenever
self.crypto = Crypto(keychain: keychain)
self.secureStorage = SecureStorage(keychain: keychain)
let relayer = Relayer(relayHost: relayHost, projectId: projectId, keyValueStorage: keyValueStorage, logger: logger)
let serializer = JSONRPCSerializer(crypto: crypto)
self.history = JsonRpcHistory(logger: logger, keyValueStore: KeyValueStore<JsonRpcRecord>(defaults: keyValueStorage, identifier: StorageDomainIdentifiers.jsonRpcHistory.rawValue))
Expand Down Expand Up @@ -80,7 +78,6 @@ public final class WalletConnectClient {
self.logger = logger
// try? keychain.deleteAll() // Use for cleanup while lifecycles are not handled yet, but FIXME whenever
self.crypto = Crypto(keychain: keychain)
self.secureStorage = SecureStorage(keychain: keychain)
let serializer = JSONRPCSerializer(crypto: crypto)
self.history = JsonRpcHistory(logger: logger, keyValueStore: KeyValueStore<JsonRpcRecord>(defaults: keyValueStorage, identifier: StorageDomainIdentifiers.jsonRpcHistory.rawValue))
self.relay = WalletConnectRelay(networkRelayer: relayer, jsonRpcSerializer: serializer, logger: logger, jsonRpcHistory: history)
Expand Down
58 changes: 0 additions & 58 deletions Tests/WalletConnectTests/SecureStorageTests.swift

This file was deleted.

0 comments on commit 0f0f258

Please sign in to comment.