LibCore: Remove unused "visible for timer purposes" concept

This was a long-unused leftover from SerenityOS.
This commit is contained in:
Andreas Kling 2025-08-11 11:45:39 +02:00 committed by Andreas Kling
commit c47e253c60
Notes: github-actions[bot] 2025-08-11 14:57:04 +00:00
17 changed files with 24 additions and 63 deletions

View file

@ -207,7 +207,7 @@ NonnullOwnPtr<Core::EventLoopImplementation> EventLoopManagerMacOS::make_impleme
return EventLoopImplementationMacOS::create();
}
intptr_t EventLoopManagerMacOS::register_timer(Core::EventReceiver& receiver, int interval_milliseconds, bool should_reload, Core::TimerShouldFireWhenNotVisible should_fire_when_not_visible)
intptr_t EventLoopManagerMacOS::register_timer(Core::EventReceiver& receiver, int interval_milliseconds, bool should_reload)
{
auto& thread_data = ThreadData::the();
@ -225,12 +225,6 @@ intptr_t EventLoopManagerMacOS::register_timer(Core::EventReceiver& receiver, in
return;
}
if (should_fire_when_not_visible == Core::TimerShouldFireWhenNotVisible::No) {
if (!receiver->is_visible_for_timer_purposes()) {
return;
}
}
Core::TimerEvent event;
receiver->dispatch_event(event);
});