Skip to content

Commit 870755f

Browse files
yungstersfacebook-github-bot
authored andcommitted
RN: Delete EventEmitter#removeSubscription
Summary: Deletes `EventEmitter#removeSubscription`, which has been deprecated since D27704279 (cb6cbd1). Relatedly, the `removeListener` family of methods (which were deprecated ad the same time) were recently removed by D35549719 (2596b2f). Changelog: [General][Removed] - Removed `EventEmitter.prototype.removeSubscription` method. Reviewed By: christophpurrer Differential Revision: D36171048 fbshipit-source-id: 2409d235d43049cddfe0a54bcc60e1f47d4185c5
1 parent 018d5cf commit 870755f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Libraries/vendor/emitter/_EventEmitter.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,6 @@ class EventEmitter<EventDefinitions: {...}> {
7878
this._subscriber.removeAllSubscriptions(eventType);
7979
}
8080

81-
/**
82-
* @deprecated Use `remove` on the EventSubscription from `addListener`.
83-
*/
84-
removeSubscription<K: $Keys<EventDefinitions>>(
85-
subscription: EmitterSubscription<EventDefinitions, K>,
86-
): void {
87-
console.warn(
88-
'EventEmitter.removeSubscription(...): Method has been deprecated. ' +
89-
'Please instead use `remove()` on the subscription itself.',
90-
);
91-
this.__removeSubscription(subscription);
92-
}
93-
9481
/**
9582
* Called by `EmitterSubscription` to bypass the above deprecation warning.
9683
*/

0 commit comments

Comments
 (0)