Skip to content

Commit 2d7c754

Browse files
authored
Delete unused code in ReactDOMFrameScheduling (#11301)
1 parent 69fcc81 commit 2d7c754

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/shared/ReactDOMFrameScheduling.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ if (!ExecutionEnvironment.canUseDOM) {
6868
} else if (typeof requestIdleCallback !== 'function') {
6969
// Polyfill requestIdleCallback.
7070

71-
var scheduledRAFCallback = null;
7271
var scheduledRICCallback = null;
7372

7473
var isIdleScheduled = false;
@@ -146,11 +145,6 @@ if (!ExecutionEnvironment.canUseDOM) {
146145
isIdleScheduled = true;
147146
window.postMessage(messageKey, '*');
148147
}
149-
var callback = scheduledRAFCallback;
150-
scheduledRAFCallback = null;
151-
if (callback !== null) {
152-
callback(rafTime);
153-
}
154148
};
155149

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

0 commit comments

Comments
 (0)