From 45d26f6edb9564cb3fe88241b02fb0128850e9f4 Mon Sep 17 00:00:00 2001 From: Dominic Gannaway Date: Fri, 13 Mar 2020 14:16:12 +0000 Subject: [PATCH] Remove un-used function arg (#18303) --- .../react-dom/src/events/accumulateTwoPhaseListeners.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/react-dom/src/events/accumulateTwoPhaseListeners.js b/packages/react-dom/src/events/accumulateTwoPhaseListeners.js index 16f2dccd39..48350b5084 100644 --- a/packages/react-dom/src/events/accumulateTwoPhaseListeners.js +++ b/packages/react-dom/src/events/accumulateTwoPhaseListeners.js @@ -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.
)