Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeCampbell authored and Kirk Shoop (MS OPEN TECH) committed Feb 24, 2014
1 parent 5449869 commit 98ad574
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ public IDisposable Subscribe(IObserver<T> observer)

var n = 0;

//var subscription = new Subscription(this, so);
var subscription = new RemovableDisposable(this, so);
lock (_gate)
{
Expand Down Expand Up @@ -416,18 +415,16 @@ public IDisposable Subscribe(IObserver<T> observer)
return subscription;
}

//public void Unsubscribe(IObserver<T> observer)
public void Unsubscribe(ScheduledObserver<T> observer)
private void Unsubscribe(ScheduledObserver<T> observer)
{
lock (_gate)
{
//var so = (ScheduledObserver<T>)observer;
//so.Dispose();
observer.Dispose();
if (!_isDisposed)
_observers = _observers.Remove(observer);
}
}
//public void Unsubscribe(IObserver<T> observer)

void IReplaySubjectImplementation.Unsubscribe(IObserver<T> observer)
{
var so = (ScheduledObserver<T>)observer;
Expand Down Expand Up @@ -464,7 +461,7 @@ public void Dispose()
{
_isDisposed = true;
_observers = null;
//_queue.Clear();
_queue.Clear();
}
}
}
Expand Down

0 comments on commit 98ad574

Please sign in to comment.