Skip to content

Commit

Permalink
refactor(Subscriber): remove _unsubscribeAndRecycle
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Leaked implementation detail `_unsubscribeAndRecycle` has been removed. Just use new `Subscription` objects
  • Loading branch information
benlesh committed Aug 6, 2020
1 parent 6f90597 commit d879c3f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/internal/Subscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,6 @@ export class Subscriber<T> extends Subscription implements Observer<T> {
this.destination.complete();
this.unsubscribe();
}

/** @deprecated This is an internal implementation detail, do not use. */
_unsubscribeAndRecycle(): Subscriber<T> {
const { _parentOrParents } = this;
this._parentOrParents = null!;
this.unsubscribe();
this.closed = false;
this.isStopped = false;
this._parentOrParents = _parentOrParents;
return this;
}
}

/**
Expand Down

0 comments on commit d879c3f

Please sign in to comment.