From b74fc7995eba4e61b4e17fa2765cccf1bce13e3c Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Thu, 15 Jan 2026 11:29:29 -0800 Subject: [PATCH] RN: Minor Cleanup in `EventEmitter` Summary: Removes an obsolete `$FlowFixMe` and removes an unused type argument. Differential Revision: D90785969 --- packages/react-native/Libraries/vendor/emitter/EventEmitter.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/react-native/Libraries/vendor/emitter/EventEmitter.js b/packages/react-native/Libraries/vendor/emitter/EventEmitter.js index 05d668dee422..66bc3b61aa60 100644 --- a/packages/react-native/Libraries/vendor/emitter/EventEmitter.js +++ b/packages/react-native/Libraries/vendor/emitter/EventEmitter.js @@ -126,7 +126,6 @@ export default class EventEmitter< // Copy `registrations` to take a snapshot when we invoke `emit`, in case // registrations are added or removed when listeners are invoked. for (const registration of Array.from(registrations)) { - // $FlowFixMe[incompatible-type] registration.listener.apply(registration.context, args); } } @@ -159,7 +158,6 @@ export default class EventEmitter< function allocate< TEventToArgsMap: Readonly>>, TEvent: $Keys, - TEventArgs: TEventToArgsMap[TEvent], >( registry: Registry, eventType: TEvent,