Delete unused code in ReactDOMFrameScheduling (#11301)
Brian Vaughn committed
Oct 21, 2017 at 08:54 UTC
2d7c754f3ba482d69ee3a06dd101ba12cb4592c9
1 file changed
-6
packages/shared/ReactDOMFrameScheduling.js
-6
@@ -68,7 +68,6 @@ if (!ExecutionEnvironment.canUseDOM) {
68
} else if (typeof requestIdleCallback !== 'function') {
69
// Polyfill requestIdleCallback.
70
71
- var scheduledRAFCallback = null;
71
var scheduledRICCallback = null;
72
73
var isIdleScheduled = false;
@@ -146,11 +145,6 @@ if (!ExecutionEnvironment.canUseDOM) {
145
isIdleScheduled = true;
146
window.postMessage(messageKey, '*');
147
}
149
- var callback = scheduledRAFCallback;
150
- scheduledRAFCallback = null;
151
- if (callback !== null) {
152
- callback(rafTime);
153
- }
148
};
149
150
rIC = function(callback: (deadline: Deadline) => void): number {