From c56bf9634b50b123d2d969e6d77adac57dbf799c Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Fri, 12 May 2023 09:27:46 +0300 Subject: [PATCH] chore: Remove unused method --- .../Xaml/Controls/Primitives/ToggleButton.cs | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/src/Uno.UI/UI/Xaml/Controls/Primitives/ToggleButton.cs b/src/Uno.UI/UI/Xaml/Controls/Primitives/ToggleButton.cs index 6bdb33ab2a73..07f4a5505e76 100644 --- a/src/Uno.UI/UI/Xaml/Controls/Primitives/ToggleButton.cs +++ b/src/Uno.UI/UI/Xaml/Controls/Primitives/ToggleButton.cs @@ -87,31 +87,6 @@ public bool IsThreeState /// internal bool CanRevertState { get; set; } = true; - private void OnIsCheckedChanged(bool? oldValue, bool? newValue) - { - // This workaround can be removed if pooling is removed. See https://github.com/unoplatform/uno/issues/12189 - if (_suppressCheckedChanged) - { - return; - } - - if (IsChecked == null) - { - // Indeterminate - Indeterminate?.Invoke(this, new RoutedEventArgs(this)); - } - else if (IsChecked.Value) - { - // Checked - Checked?.Invoke(this, new RoutedEventArgs(this)); - } - else - { - // Unchecked - Unchecked?.Invoke(this, new RoutedEventArgs(this)); - } - } - public void OnTemplateRecycled() { try