Skip to content

Commit

Permalink
chore(Subscriber): remove _addParentTeardownLogic
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Sep 14, 2018
1 parent 6dc62e3 commit 1cc1070
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions spec/Subscriber-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ describe('Subscriber', () => {
it('should accept subscribers as a destination if they meet the proper criteria', () => {
const fakeSubscriber = {
[rxSubscriber](this: any) { return this; },
_addParentTeardownLogic() { /* noop */ },
add() { /* noop */ }
add() { /* noop */ },
syncErrorThrowable: false
};

const subscriber = new Subscriber(fakeSubscriber as any);
Expand Down
7 changes: 1 addition & 6 deletions src/internal/Subscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,6 @@ export class Subscriber<T> extends Subscription implements Observer<T> {
this.unsubscribe();
}

/** @deprecated This is an internal implementation detail, do not use. */
_addParentTeardownLogic(parentTeardownLogic: TeardownLogic) {
/*noop*/
}

/** @deprecated This is an internal implementation detail, do not use. */
_unsubscribeAndRecycle(): Subscriber<T> {
const { _parent, _parents } = this;
Expand Down Expand Up @@ -315,5 +310,5 @@ export class SafeSubscriber<T> extends Subscriber<T> {
}

function isTrustedSubscriber(obj: any) {
return obj instanceof Subscriber || ('_addParentTeardownLogic' in obj && obj[rxSubscriberSymbol]);
return obj instanceof Subscriber || ('syncErrorThrowable' in obj && obj[rxSubscriberSymbol]);
}

0 comments on commit 1cc1070

Please sign in to comment.