Skip to content

Commit b74fc79

Browse files
yungstersfacebook-github-bot
authored andcommitted
RN: Minor Cleanup in EventEmitter
Summary: Removes an obsolete `$FlowFixMe` and removes an unused type argument. Differential Revision: D90785969
1 parent cf124f6 commit b74fc79

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

packages/react-native/Libraries/vendor/emitter/EventEmitter.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ export default class EventEmitter<
126126
// Copy `registrations` to take a snapshot when we invoke `emit`, in case
127127
// registrations are added or removed when listeners are invoked.
128128
for (const registration of Array.from(registrations)) {
129-
// $FlowFixMe[incompatible-type]
130129
registration.listener.apply(registration.context, args);
131130
}
132131
}
@@ -159,7 +158,6 @@ export default class EventEmitter<
159158
function allocate<
160159
TEventToArgsMap: Readonly<Record<string, ReadonlyArray<UnsafeEventObject>>>,
161160
TEvent: $Keys<TEventToArgsMap>,
162-
TEventArgs: TEventToArgsMap[TEvent],
163161
>(
164162
registry: Registry<TEventToArgsMap>,
165163
eventType: TEvent,

0 commit comments

Comments
 (0)