Skip to content

Commit

Permalink
Removed unused method.
Browse files Browse the repository at this point in the history
  • Loading branch information
grokys committed Nov 21, 2019
1 parent 55eea62 commit a29a2db
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Avalonia.Base/DirectProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,5 @@ void IDirectPropertyAccessor.SetValue(IAvaloniaObject instance, object value)

Setter((TOwner)instance, (TValue)value);
}

internal void WrapSetter(TOwner instance, BindingValue<TValue> value)
{
if (Setter == null)
{
throw new ArgumentException($"The property {Name} is readonly.");
}

Setter(instance, value.Value);
}
}
}

0 comments on commit a29a2db

Please sign in to comment.