Skip to content

Commit

Permalink
Remove unused argument (#19600)
Browse files Browse the repository at this point in the history
  • Loading branch information
inottn committed Aug 13, 2020
1 parent 6291255 commit ccb6c39
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 ccb6c39

Please sign in to comment.