From 587ae49d71f218d34393291933d513d2975e22c3 Mon Sep 17 00:00:00 2001 From: tjallingt Date: Thu, 20 Jul 2023 16:30:30 +0200 Subject: [PATCH] chore: remove unused argument from schedule requestHostCallback (#27133) Noticed this argument was left in the cleanup from https://github.com/facebook/react/pull/27130 It seems to me like it would benefit from being cleaned up too. --- packages/scheduler/src/forks/Scheduler.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/scheduler/src/forks/Scheduler.js b/packages/scheduler/src/forks/Scheduler.js index ccea89d80bf19..2263b706aad35 100644 --- a/packages/scheduler/src/forks/Scheduler.js +++ b/packages/scheduler/src/forks/Scheduler.js @@ -152,7 +152,7 @@ function handleTimeout(currentTime: number) { if (!isHostCallbackScheduled) { if (peek(taskQueue) !== null) { isHostCallbackScheduled = true; - requestHostCallback(flushWork); + requestHostCallback(); } else { const firstTimer = peek(timerQueue); if (firstTimer !== null) { @@ -419,7 +419,7 @@ function unstable_scheduleCallback( // wait until the next time we yield. if (!isHostCallbackScheduled && !isPerformingWork) { isHostCallbackScheduled = true; - requestHostCallback(flushWork); + requestHostCallback(); } } @@ -434,7 +434,7 @@ function unstable_continueExecution() { isSchedulerPaused = false; if (!isHostCallbackScheduled && !isPerformingWork) { isHostCallbackScheduled = true; - requestHostCallback(flushWork); + requestHostCallback(); } } @@ -616,7 +616,7 @@ if (typeof localSetImmediate === 'function') { }; } -function requestHostCallback(callback: (initialTime: number) => boolean) { +function requestHostCallback() { if (!isMessageLoopRunning) { isMessageLoopRunning = true; schedulePerformWorkUntilDeadline();