Skip to content

Commit

Permalink
Delete unused code in ReactDOMFrameScheduling (#11301)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn authored Oct 21, 2017
1 parent 69fcc81 commit 2d7c754
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/shared/ReactDOMFrameScheduling.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ if (!ExecutionEnvironment.canUseDOM) {
} else if (typeof requestIdleCallback !== 'function') {
// Polyfill requestIdleCallback.

var scheduledRAFCallback = null;
var scheduledRICCallback = null;

var isIdleScheduled = false;
Expand Down Expand Up @@ -146,11 +145,6 @@ if (!ExecutionEnvironment.canUseDOM) {
isIdleScheduled = true;
window.postMessage(messageKey, '*');
}
var callback = scheduledRAFCallback;
scheduledRAFCallback = null;
if (callback !== null) {
callback(rafTime);
}
};

rIC = function(callback: (deadline: Deadline) => void): number {
Expand Down

0 comments on commit 2d7c754

Please sign in to comment.