`WalletManager`: Remove unused methods.
MODIFY
WalletWasabi/CoinJoin/Client/Clients/CoinJoinClient.cs
WalletWasabi/CoinJoin/Client/Clients/CoinJoinClient.cs
@@ -94,7 +94,6 @@ namespace WalletWasabi.CoinJoin.Client.Clients
public Network Network { get; private set; }
public KeyManager KeyManager { get; }
public KeyManager DestinationKeyManager { get; set; }
- public bool IsQuitPending { get; set; }
private ClientRoundRegistration DelayedRoundRegistration { get; set; }
@@ -741,7 +740,7 @@ namespace WalletWasabi.CoinJoin.Client.Clients
public async Task<IEnumerable<SmartCoin>> QueueCoinsToMixAsync(string password, IEnumerable<SmartCoin> coins)
{
- if (coins is null || !coins.Any() || IsQuitPending)
+ if (coins is null || !coins.Any())
{
return Enumerable.Empty<SmartCoin>();
}

MODIFY
WalletWasabi/Wallets/WalletManager.cs
WalletWasabi/Wallets/WalletManager.cs
@@ -98,17 +98,6 @@ namespace WalletWasabi.Wallets
}
}
- public void SignalQuitPending(bool isQuitPending)
- {
- lock (Lock)
- {
- foreach (var client in Wallets.Where(x => x.ChaumianClient is { }).Select(x => x.ChaumianClient))
- {
- client.IsQuitPending = isQuitPending;
- }
- }
- }
-
public IEnumerable<Wallet> GetWallets(bool refreshWalletList = true)
{
if (refreshWalletList)
@@ -124,11 +113,6 @@ namespace WalletWasabi.Wallets
public bool HasWallet() => AnyWallet(_ => true);
- public bool AnyWallet()
- {
- return AnyWallet(x => x.State >= WalletState.Starting);
- }
-
public bool AnyWallet(Func<Wallet, bool> predicate)
{
lock (Lock)
@@ -180,17 +164,6 @@ namespace WalletWasabi.Wallets
}
}
- public Task<Wallet> StartWalletAsync(KeyManager keyManagerToFindByReference)
- {
- Wallet wallet;
- lock (Lock)
- {
- wallet = Wallets.Single(x => x.KeyManager == keyManagerToFindByReference);
- }
-
- return StartWalletAsync(wallet);
- }
-
public Task<Wallet> AddAndStartWalletAsync(KeyManager keyManager)
{
var wallet = AddWallet(keyManager);
@@ -266,16 +239,6 @@ namespace WalletWasabi.Wallets
WalletAdded?.Invoke(this, wallet);
}
- public async Task DequeueAllCoinsGracefullyAsync(DequeueReason reason, CancellationToken token)
- {
- IEnumerable<Task> tasks;
- lock (Lock)
- {
- tasks = Wallets.Where(x => x.ChaumianClient is { }).Select(x => x.ChaumianClient.DequeueAllCoinsFromMixGracefullyAsync(reason, token)).ToArray();
- }
- await Task.WhenAll(tasks).ConfigureAwait(false);
- }
-
public bool WalletExists(HDFingerprint? fingerprint) => GetWallets().Any(x => fingerprint is { } && x.KeyManager.MasterFingerprint == fingerprint);
private void ChaumianClient_OnDequeue(object? sender, DequeueResult e)
@@ -434,13 +397,5 @@ namespace WalletWasabi.Wallets
return Wallets.Single(x => x.KeyManager.WalletName == walletName);
}
}
-
- public bool AnyCoinJoinInProgress()
- {
- lock (Lock)
- {
- return Wallets.Any(x => x.ChaumianClient?.State.AnyCoinsQueued() is true);
- }
- }
}
}

`WalletManager`: Remove unused methods.