From ccb6c39451b502c6b3ff3c014962827c54bae548 Mon Sep 17 00:00:00 2001 From: inottn Date: Thu, 13 Aug 2020 22:11:01 +0800 Subject: [PATCH] Remove unused argument (#19600) --- packages/react-reconciler/src/ReactFiberWorkLoop.new.js | 6 +++--- packages/react-reconciler/src/ReactFiberWorkLoop.old.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/react-reconciler/src/ReactFiberWorkLoop.new.js b/packages/react-reconciler/src/ReactFiberWorkLoop.new.js index 9cd162cb01cf0..679a93bdd2790 100644 --- a/packages/react-reconciler/src/ReactFiberWorkLoop.new.js +++ b/packages/react-reconciler/src/ReactFiberWorkLoop.new.js @@ -1470,7 +1470,7 @@ function handleError(root, thrownValue): void { } while (true); } -function pushDispatcher(root) { +function pushDispatcher() { const prevDispatcher = ReactCurrentDispatcher.current; ReactCurrentDispatcher.current = ContextOnlyDispatcher; if (prevDispatcher === null) { @@ -1586,7 +1586,7 @@ export function renderHasNotSuspendedYet(): boolean { function renderRootSync(root: FiberRoot, lanes: Lanes) { const prevExecutionContext = executionContext; executionContext |= RenderContext; - const prevDispatcher = pushDispatcher(root); + const prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack // and prepare a fresh one. Otherwise we'll continue where we left off. @@ -1661,7 +1661,7 @@ function workLoopSync() { function renderRootConcurrent(root: FiberRoot, lanes: Lanes) { const prevExecutionContext = executionContext; executionContext |= RenderContext; - const prevDispatcher = pushDispatcher(root); + const prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack // and prepare a fresh one. Otherwise we'll continue where we left off. diff --git a/packages/react-reconciler/src/ReactFiberWorkLoop.old.js b/packages/react-reconciler/src/ReactFiberWorkLoop.old.js index 4cb6e5093377e..0aabd21aab470 100644 --- a/packages/react-reconciler/src/ReactFiberWorkLoop.old.js +++ b/packages/react-reconciler/src/ReactFiberWorkLoop.old.js @@ -1454,7 +1454,7 @@ function handleError(root, thrownValue): void { } while (true); } -function pushDispatcher(root) { +function pushDispatcher() { const prevDispatcher = ReactCurrentDispatcher.current; ReactCurrentDispatcher.current = ContextOnlyDispatcher; if (prevDispatcher === null) { @@ -1570,7 +1570,7 @@ export function renderHasNotSuspendedYet(): boolean { function renderRootSync(root: FiberRoot, lanes: Lanes) { const prevExecutionContext = executionContext; executionContext |= RenderContext; - const prevDispatcher = pushDispatcher(root); + const prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack // and prepare a fresh one. Otherwise we'll continue where we left off. @@ -1645,7 +1645,7 @@ function workLoopSync() { function renderRootConcurrent(root: FiberRoot, lanes: Lanes) { const prevExecutionContext = executionContext; executionContext |= RenderContext; - const prevDispatcher = pushDispatcher(root); + const prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack // and prepare a fresh one. Otherwise we'll continue where we left off.