mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-21 07:29:53 +00:00
LibCore: Remove unused "visible for timer purposes" concept
This was a long-unused leftover from SerenityOS.
This commit is contained in:
parent
0037df88d5
commit
c47e253c60
Notes:
github-actions[bot]
2025-08-11 14:57:04 +00:00
Author: https://github.com/awesomekling
Commit: c47e253c60
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5817
Reviewed-by: https://github.com/gmta ✅
17 changed files with 24 additions and 63 deletions
|
@ -46,14 +46,14 @@ void EventReceiver::custom_event(CustomEvent&)
|
|||
{
|
||||
}
|
||||
|
||||
void EventReceiver::start_timer(int ms, TimerShouldFireWhenNotVisible fire_when_not_visible)
|
||||
void EventReceiver::start_timer(int ms)
|
||||
{
|
||||
if (m_timer_id) {
|
||||
dbgln("{} {:p} already has a timer!", class_name(), this);
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
m_timer_id = Core::EventLoop::register_timer(*this, ms, true, fire_when_not_visible);
|
||||
m_timer_id = Core::EventLoop::register_timer(*this, ms, true);
|
||||
}
|
||||
|
||||
void EventReceiver::stop_timer()
|
||||
|
@ -74,9 +74,4 @@ void EventReceiver::dispatch_event(Core::Event& e)
|
|||
event(e);
|
||||
}
|
||||
|
||||
bool EventReceiver::is_visible_for_timer_purposes() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue