Skip to content

Commit

Permalink
Remove redundant property
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Sep 3, 2024
1 parent 196fe53 commit e4ed081
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/Avalonia.Xaml.Interactions/Core/CallMethodAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ public class CallMethodAction : Avalonia.Xaml.Interactivity.Action
private readonly List<MethodDescriptor> _methodDescriptors = [];
private MethodDescriptor? _cachedMethodDescriptor;

/// <summary>
/// Identifies the <seealso cref="IsEnabled"/> avalonia property.
/// </summary>
public static readonly StyledProperty<bool> IsEnabledProperty =
AvaloniaProperty.Register<CallMethodAction, bool>(nameof(IsEnabled), defaultValue: true);

/// <summary>
/// Identifies the <seealso cref="MethodName"/> avalonia property.
/// </summary>
Expand All @@ -38,16 +32,6 @@ public class CallMethodAction : Avalonia.Xaml.Interactivity.Action
public static readonly StyledProperty<object?> TargetObjectProperty =
AvaloniaProperty.Register<CallMethodAction, object?>(nameof(TargetObject));

/// <summary>
/// Gets or sets a value indicating whether this instance is enabled.
/// </summary>
/// <value><c>true</c> if this instance is enabled; otherwise, <c>false</c>.</value>
public bool IsEnabled
{
get => GetValue(IsEnabledProperty);
set => SetValue(IsEnabledProperty, value);
}

/// <summary>
/// Gets or sets the name of the method to invoke. This is a avalonia property.
/// </summary>
Expand Down

0 comments on commit e4ed081

Please sign in to comment.