Remove un-used function arg (#18303)

This commit is contained in:
Dominic Gannaway 2020-03-13 14:16:12 +00:00 committed by GitHub
parent 73ff8b9094
commit 45d26f6edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,6 @@ import {HostComponent} from 'shared/ReactWorkTags';
export default function accumulateTwoPhaseListeners(
event: ReactSyntheticEvent,
skipTarget?: boolean,
): void {
const phasedRegistrationNames = event.dispatchConfig.phasedRegistrationNames;
if (phasedRegistrationNames == null) {
@ -25,12 +24,6 @@ export default function accumulateTwoPhaseListeners(
const dispatchInstances = [];
let node = event._targetInst;
// If we skip the target, then start the node at the parent
// of the target.
if (skipTarget) {
node = node.return;
}
// Accumulate all instances and listeners via the target -> root path.
while (node !== null) {
// We only care for listeners that are on HostComponents (i.e. <div>)