Skip to content

Commit

Permalink
Removed unused owner reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
grokys committed Jan 17, 2020
1 parent 00c1c35 commit d0e2a84
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/Avalonia.Base/PropertyStore/BindingEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,15 @@ internal interface IBindingEntry : IPriorityValueEntry, IDisposable

internal class BindingEntry<T> : IBindingEntry, IPriorityValueEntry<T>, IObserver<BindingValue<T>>
{
private readonly IAvaloniaObject _owner;
private IValueSink _sink;
private IDisposable? _subscription;

public BindingEntry(
IAvaloniaObject owner,
StyledPropertyBase<T> property,
IObservable<BindingValue<T>> source,
BindingPriority priority,
IValueSink sink)
{
_owner = owner;
Property = property;
Source = source;
Priority = priority;
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Base/PropertyStore/PriorityValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void SetValue(T value, BindingPriority priority)

public BindingEntry<T> AddBinding(IObservable<BindingValue<T>> source, BindingPriority priority)
{
var binding = new BindingEntry<T>(_owner, Property, source, priority, this);
var binding = new BindingEntry<T>(Property, source, priority, this);
var insert = FindInsertPoint(binding.Priority);
_entries.Insert(insert, binding);
return binding;
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Base/ValueStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public IDisposable AddBinding<T>(
}
else
{
var entry = new BindingEntry<T>(_owner, property, source, priority, this);
var entry = new BindingEntry<T>(property, source, priority, this);
_values.AddValue(property, entry);
entry.Start();
return entry;
Expand Down

0 comments on commit d0e2a84

Please sign in to comment.