Skip to content

Commit 45d26f6

Browse files
authored
Remove un-used function arg (#18303)
1 parent 73ff8b9 commit 45d26f6

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/react-dom/src/events/accumulateTwoPhaseListeners.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {HostComponent} from 'shared/ReactWorkTags';
1414

1515
export default function accumulateTwoPhaseListeners(
1616
event: ReactSyntheticEvent,
17-
skipTarget?: boolean,
1817
): void {
1918
const phasedRegistrationNames = event.dispatchConfig.phasedRegistrationNames;
2019
if (phasedRegistrationNames == null) {
@@ -25,12 +24,6 @@ export default function accumulateTwoPhaseListeners(
2524
const dispatchInstances = [];
2625
let node = event._targetInst;
2726

28-
// If we skip the target, then start the node at the parent
29-
// of the target.
30-
if (skipTarget) {
31-
node = node.return;
32-
}
33-
3427
// Accumulate all instances and listeners via the target -> root path.
3528
while (node !== null) {
3629
// We only care for listeners that are on HostComponents (i.e. <div>)

0 commit comments

Comments
 (0)