From 63cc1a0f137c72944e49430100fdea4647d66550 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Mon, 17 Oct 2022 12:00:03 +0200 Subject: [PATCH] Remove unused methods and add docs. --- .../PropertyStore/EffectiveValue.cs | 16 ++++++---------- .../PropertyStore/EffectiveValue`1.cs | 1 - 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/Avalonia.Base/PropertyStore/EffectiveValue.cs b/src/Avalonia.Base/PropertyStore/EffectiveValue.cs index 30f90754f5..647a16179f 100644 --- a/src/Avalonia.Base/PropertyStore/EffectiveValue.cs +++ b/src/Avalonia.Base/PropertyStore/EffectiveValue.cs @@ -53,6 +53,12 @@ namespace Avalonia.PropertyStore BasePriority = BindingPriority.Unset; } + /// + /// Ends a reevaluation pass on the effective value. + /// + /// + /// This method unsubscribes from any unused value entries. + /// public void EndReevaluation() { if (Priority == BindingPriority.Unset) @@ -96,16 +102,6 @@ namespace Avalonia.PropertyStore IValueEntry baseValue, BindingPriority basePriority); - /// - /// Set the value priority, but leaves the value unchanged. - /// - public void SetPriority(BindingPriority priority) => Priority = BindingPriority.Unset; - - /// - /// Set the base value priority, but leaves the base value unchanged. - /// - public void SetBasePriority(BindingPriority priority) => BasePriority = BindingPriority.Unset; - /// /// Raises in response to an inherited value /// change. diff --git a/src/Avalonia.Base/PropertyStore/EffectiveValue`1.cs b/src/Avalonia.Base/PropertyStore/EffectiveValue`1.cs index 230ef27dcc..bc2776a5df 100644 --- a/src/Avalonia.Base/PropertyStore/EffectiveValue`1.cs +++ b/src/Avalonia.Base/PropertyStore/EffectiveValue`1.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using Avalonia.Data; -using JetBrains.Annotations; namespace Avalonia.PropertyStore {