Skip to content

Commit

Permalink
Remove unused argument (facebook#19600)
Browse files Browse the repository at this point in the history
  • Loading branch information
inottn authored and koto committed Jun 15, 2021
1 parent d155db0 commit e70eddb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/react-reconciler/src/ReactFiberWorkLoop.new.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions packages/react-reconciler/src/ReactFiberWorkLoop.old.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit e70eddb

Please sign in to comment.