Skip to content

Commit

Permalink
Remove unused export
Browse files Browse the repository at this point in the history
Meant to do this in e4b21be but neglected to `git add` the changes.
  • Loading branch information
acdlite committed Oct 7, 2019
1 parent 71d012e commit 5a71cbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
1 change: 0 additions & 1 deletion packages/react-reconciler/src/ReactFiberReconciler.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ export function updateContainer(
}

export {
flushRoot,
batchedEventUpdates,
batchedUpdates,
unbatchedUpdates,
Expand Down
25 changes: 3 additions & 22 deletions packages/react-reconciler/src/ReactFiberWorkLoop.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,20 +367,6 @@ export function computeExpirationForFiber(
return expirationTime;
}

let lastUniqueAsyncExpiration = NoWork;
export function computeUniqueAsyncExpiration(): ExpirationTime {
const currentTime = requestCurrentTime();
let result = computeAsyncExpiration(currentTime);
if (result <= lastUniqueAsyncExpiration) {
// Since we assume the current time monotonically increases, we only hit
// this branch when computeUniqueAsyncExpiration is fired multiple times
// within a 200ms window (or whatever the async bucket size is).
result -= 1;
}
lastUniqueAsyncExpiration = result;
return result;
}

export function scheduleUpdateOnFiber(
fiber: Fiber,
expirationTime: ExpirationTime,
Expand Down Expand Up @@ -1080,16 +1066,11 @@ function finishSyncRender(root, exitStatus, expirationTime) {
}

export function flushRoot(root: FiberRoot, expirationTime: ExpirationTime) {
if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
invariant(
false,
'work.commit(): Cannot commit while already rendering. This likely ' +
'means you attempted to commit from inside a lifecycle method.',
);
}
markRootExpiredAtTime(root, expirationTime);
ensureRootIsScheduled(root);
flushSyncCallbackQueue();
if ((executionContext & (RenderContext | CommitContext)) === NoContext) {
flushSyncCallbackQueue();
}
}

export function flushDiscreteUpdates() {
Expand Down

0 comments on commit 5a71cbe

Please sign in to comment.