Skip to content

Commit 0ed9858

Browse files
refactor: remove unused Electrum/Esplora code
1 parent 5d7ddc4 commit 0ed9858

4 files changed

Lines changed: 0 additions & 211 deletions

File tree

app/src/main/java/org/bitcoindevkit/devkitwallet/domain/BlockchainClient.kt

Lines changed: 0 additions & 63 deletions
This file was deleted.

app/src/main/java/org/bitcoindevkit/devkitwallet/domain/BlockchainClientsConfig.kt

Lines changed: 0 additions & 66 deletions
This file was deleted.

app/src/main/java/org/bitcoindevkit/devkitwallet/domain/ElectrumServer.kt

Lines changed: 0 additions & 74 deletions
This file was deleted.

app/src/main/java/org/bitcoindevkit/devkitwallet/domain/Wallet.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,8 @@ class Wallet private constructor(
4747
private val walletId: String,
4848
private val userPreferencesRepository: UserPreferencesRepository,
4949
val internalAppFilesPath: String,
50-
blockchainClientsConfig: BlockchainClientsConfig,
5150
val network: Network,
5251
) {
53-
private var currentBlockchainClient: BlockchainClient? = blockchainClientsConfig.getClient()
54-
5552
fun getWalletSecrets(): WalletSecrets {
5653
return walletSecrets
5754
}
@@ -248,7 +245,6 @@ class Wallet private constructor(
248245
walletId = walletId,
249246
userPreferencesRepository = userPreferencesRepository,
250247
internalAppFilesPath = internalAppFilesPath,
251-
blockchainClientsConfig = BlockchainClientsConfig.createDefaultConfig(newWalletConfig.network),
252248
network = newWalletConfig.network
253249
)
254250
}
@@ -277,9 +273,6 @@ class Wallet private constructor(
277273
walletId = activeWallet.id,
278274
userPreferencesRepository = userPreferencesRepository,
279275
internalAppFilesPath = internalAppFilesPath,
280-
blockchainClientsConfig = BlockchainClientsConfig.createDefaultConfig(
281-
activeWallet.network.intoDomain()
282-
),
283276
network = activeWallet.network.intoDomain()
284277
)
285278
}
@@ -354,7 +347,6 @@ class Wallet private constructor(
354347
walletId = walletId,
355348
userPreferencesRepository = userPreferencesRepository,
356349
internalAppFilesPath = internalAppFilesPath,
357-
blockchainClientsConfig = BlockchainClientsConfig.createDefaultConfig(recoverWalletConfig.network),
358350
network = recoverWalletConfig.network
359351
)
360352
}

0 commit comments

Comments
 (0)