Delete unused code in ReactDOMFrameScheduling (#11301)

This commit is contained in:
Brian Vaughn authored and GitHub committed 2017-10-21 08:54:45 -07:00
1 parent 69fcc81ce4
commit 2d7c754f3b
1 file changed
-6
@@ -68,7 +68,6 @@ if (!ExecutionEnvironment.canUseDOM) {
} else if (typeof requestIdleCallback !== 'function') {
// Polyfill requestIdleCallback.
var scheduledRAFCallback = null;
var scheduledRICCallback = null;
var isIdleScheduled = false;
@@ -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 {