remove some redundant lines (#13077)
* remove another couple of redundant lines * a few more
Nathan Quarles committed
Jun 20, 2018 at 11:35 UTC
ae8c6dd5347797f2279639a5bc644e9b6632bbbb
1 file changed
-4
packages/react-reconciler/src/ReactFiberScheduler.js
-4
@@ -999,8 +999,6 @@ function renderRoot(root: FiberRoot, isYieldy: boolean): void {
999
resetStack();
1000
nextRoot = root;
1001
nextRenderExpirationTime = expirationTime;
1002
- nextLatestTimeoutMs = -1;
1003
- nextRenderDidError = false;
1002
nextUnitOfWork = createWorkInProgress(
1003
nextRoot.current,
1004
null,
@@ -1840,7 +1838,6 @@ function performWorkOnRoot(
1838
// This root is already complete. We can commit it.
1839
completeRoot(root, finishedWork, expirationTime);
1840
} else {
1843
- root.finishedWork = null;
1841
renderRoot(root, false);
1842
finishedWork = root.finishedWork;
1843
if (finishedWork !== null) {
@@ -1855,7 +1852,6 @@ function performWorkOnRoot(
1852
// This root is already complete. We can commit it.
1853
completeRoot(root, finishedWork, expirationTime);
1854
} else {
1858
- root.finishedWork = null;
1855
renderRoot(root, true);
1856
finishedWork = root.finishedWork;
1857
if (finishedWork !== null) {