[Refactor] Remove unused code
MODIFY
WalletWasabi.Gui/Config.cs
WalletWasabi.Gui/Config.cs
@@ -264,58 +264,6 @@ namespace WalletWasabi.Gui
SetFilePath(filePath);
}
- public Config(
- Network network,
- string mainNetBackendUriV3,
- string testNetBackendUriV3,
- string mainNetFallbackBackendUri,
- string testNetFallbackBackendUri,
- string regTestBackendUriV3,
- bool? useTor,
- string torHost,
- int? torSocks5Port,
- string mainNetBitcoinCoreHost,
- string testNetBitcoinCoreHost,
- string regTestBitcoinCoreHost,
- int? mainNetBitcoinCorePort,
- int? testNetBitcoinCorePort,
- int? regTestBitcoinCorePort,
- int? mixUntilAnonymitySet,
- int? privacyLevelSome,
- int? privacyLevelFine,
- int? privacyLevelStrong,
- Money dustThreshold)
- {
- Network = Guard.NotNull(nameof(network), network);
-
- MainNetBackendUriV3 = Guard.NotNullOrEmptyOrWhitespace(nameof(mainNetBackendUriV3), mainNetBackendUriV3);
- TestNetBackendUriV3 = Guard.NotNullOrEmptyOrWhitespace(nameof(testNetBackendUriV3), testNetBackendUriV3);
- MainNetFallbackBackendUri = Guard.NotNullOrEmptyOrWhitespace(nameof(mainNetFallbackBackendUri), mainNetFallbackBackendUri);
- TestNetFallbackBackendUri = Guard.NotNullOrEmptyOrWhitespace(nameof(testNetFallbackBackendUri), testNetFallbackBackendUri);
- TestNetBackendUriV3 = Guard.NotNullOrEmptyOrWhitespace(nameof(testNetBackendUriV3), testNetBackendUriV3);
- RegTestBackendUriV3 = Guard.NotNullOrEmptyOrWhitespace(nameof(regTestBackendUriV3), regTestBackendUriV3);
-
- UseTor = Guard.NotNull(nameof(useTor), useTor);
- TorHost = Guard.NotNullOrEmptyOrWhitespace(nameof(torHost), torHost);
- TorSocks5Port = Guard.NotNull(nameof(torSocks5Port), torSocks5Port);
-
- MainNetBitcoinCoreHost = Guard.NotNullOrEmptyOrWhitespace(nameof(mainNetBitcoinCoreHost), mainNetBitcoinCoreHost);
- TestNetBitcoinCoreHost = Guard.NotNullOrEmptyOrWhitespace(nameof(testNetBitcoinCoreHost), testNetBitcoinCoreHost);
- RegTestBitcoinCoreHost = Guard.NotNullOrEmptyOrWhitespace(nameof(regTestBitcoinCoreHost), regTestBitcoinCoreHost);
- MainNetBitcoinCorePort = Guard.NotNull(nameof(mainNetBitcoinCorePort), mainNetBitcoinCorePort);
- TestNetBitcoinCorePort = Guard.NotNull(nameof(testNetBitcoinCorePort), testNetBitcoinCorePort);
- RegTestBitcoinCorePort = Guard.NotNull(nameof(regTestBitcoinCorePort), regTestBitcoinCorePort);
-
- MixUntilAnonymitySet = Guard.NotNull(nameof(mixUntilAnonymitySet), mixUntilAnonymitySet);
- PrivacyLevelSome = Guard.NotNull(nameof(privacyLevelSome), privacyLevelSome);
- PrivacyLevelFine = Guard.NotNull(nameof(privacyLevelFine), privacyLevelFine);
- PrivacyLevelStrong = Guard.NotNull(nameof(privacyLevelStrong), privacyLevelStrong);
-
- DustThreshold = Guard.NotNull(nameof(dustThreshold), dustThreshold);
-
- ServiceConfiguration = new ServiceConfiguration(MixUntilAnonymitySet.Value, PrivacyLevelSome.Value, PrivacyLevelFine.Value, PrivacyLevelStrong.Value, GetBitcoinCoreEndPoint(), DustThreshold);
- }
-
/// <inheritdoc />
public async Task ToFileAsync()
{

MODIFY
WalletWasabi.Gui/UiConfig.cs
WalletWasabi.Gui/UiConfig.cs
@@ -60,17 +60,6 @@ namespace WalletWasabi.Gui
SetFilePath(filePath);
}
- public UiConfig(WindowState windowState, double height, double width, int feeTarget, int feeDisplayFormat, bool autocopy, bool lurkingWifeMode)
- {
- WindowState = Guard.NotNull(nameof(windowState), windowState);
- Height = Guard.NotNull(nameof(height), height);
- Width = Guard.NotNull(nameof(width), width);
- FeeTarget = Guard.NotNull(nameof(feeTarget), feeTarget);
- FeeDisplayFormat = Guard.NotNull(nameof(feeDisplayFormat), feeDisplayFormat);
- Autocopy = Guard.NotNull(nameof(autocopy), autocopy);
- LurkingWifeMode = Guard.NotNull(nameof(lurkingWifeMode), lurkingWifeMode);
- }
-
/// <inheritdoc />
public async Task ToFileAsync()
{

[Refactor] Remove unused code