remove codes that handled only one specific case
DELETE
WalletWasabi.Fluent/Behaviors/ButtonInsideListBoxItem.cs
-using System.Reactive.Disposables;
-using System.Reactive.Linq;
-using Avalonia.Controls;
-using Avalonia.VisualTree;
-
-namespace WalletWasabi.Fluent.Behaviors;
-
-public class ButtonInsideListBoxItemBehavior : DisposingBehavior<Button>
-{
- protected override void OnAttached(CompositeDisposable disposables)
- {
- if (AssociatedObject is null)
- {
- return;
- }
-
- Observable.FromEventPattern(AssociatedObject, nameof(Button.Click))
- .Subscribe(x =>
- {
- if (x.Sender is Button button && button.FindAncestorOfType<ListBoxItem>() is { } listBoxItem)
- {
- listBoxItem.IsSelected = true;
- }
- })
- .DisposeWith(disposables);
- }
-}

MODIFY
WalletWasabi.Fluent/Converters/EnumConverters.cs
WalletWasabi.Fluent/Converters/EnumConverters.cs
@@ -13,15 +13,4 @@ public static class EnumConverters
public static readonly IValueConverter ToUpperCase =
new FuncValueConverter<Enum, object>(x => x?.ToString().ToUpper(CultureInfo.InvariantCulture) ?? AvaloniaProperty.UnsetValue);
-
- public static readonly IValueConverter ToCharset =
- new FuncValueConverter<Enum, object>(x =>
- {
- if (x is Charset c && PasswordFinderHelper.Charsets.ContainsKey(c))
- {
- return PasswordFinderHelper.Charsets[c];
- }
-
- return AvaloniaProperty.UnsetValue;
- });
}

remove codes that handled only one specific case