From ae8c6dd5347797f2279639a5bc644e9b6632bbbb Mon Sep 17 00:00:00 2001 From: Nathan Quarles Date: Wed, 20 Jun 2018 11:35:03 -0400 Subject: [PATCH] remove some redundant lines (#13077) * remove another couple of redundant lines * a few more --- packages/react-reconciler/src/ReactFiberScheduler.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/react-reconciler/src/ReactFiberScheduler.js b/packages/react-reconciler/src/ReactFiberScheduler.js index 59a961e0a6..9de7ce4300 100644 --- a/packages/react-reconciler/src/ReactFiberScheduler.js +++ b/packages/react-reconciler/src/ReactFiberScheduler.js @@ -999,8 +999,6 @@ function renderRoot(root: FiberRoot, isYieldy: boolean): void { resetStack(); nextRoot = root; nextRenderExpirationTime = expirationTime; - nextLatestTimeoutMs = -1; - nextRenderDidError = false; nextUnitOfWork = createWorkInProgress( nextRoot.current, null, @@ -1840,7 +1838,6 @@ function performWorkOnRoot( // This root is already complete. We can commit it. completeRoot(root, finishedWork, expirationTime); } else { - root.finishedWork = null; renderRoot(root, false); finishedWork = root.finishedWork; if (finishedWork !== null) { @@ -1855,7 +1852,6 @@ function performWorkOnRoot( // This root is already complete. We can commit it. completeRoot(root, finishedWork, expirationTime); } else { - root.finishedWork = null; renderRoot(root, true); finishedWork = root.finishedWork; if (finishedWork !== null) {