mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 15:28:55 +00:00
LibCore: Remove unused methods from EventLoop
This commit is contained in:
parent
37e1d6ece1
commit
e015a43b51
Notes:
github-actions[bot]
2025-01-30 22:35:42 +00:00
Author: https://github.com/LucasChollet
Commit: e015a43b51
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3145
Reviewed-by: https://github.com/ADKaster ✅
9 changed files with 1 additions and 89 deletions
|
@ -65,11 +65,6 @@ void EventLoop::quit(int code)
|
|||
m_impl->quit(code);
|
||||
}
|
||||
|
||||
void EventLoop::unquit()
|
||||
{
|
||||
m_impl->unquit();
|
||||
}
|
||||
|
||||
struct EventLoopPusher {
|
||||
public:
|
||||
EventLoopPusher(EventLoop& event_loop)
|
||||
|
@ -91,7 +86,7 @@ int EventLoop::exec()
|
|||
void EventLoop::spin_until(Function<bool()> goal_condition)
|
||||
{
|
||||
EventLoopPusher pusher(*this);
|
||||
while (!m_impl->was_exit_requested() && !goal_condition())
|
||||
while (!goal_condition())
|
||||
pump();
|
||||
}
|
||||
|
||||
|
@ -120,11 +115,6 @@ void EventLoop::unregister_signal(int handler_id)
|
|||
EventLoopManager::the().unregister_signal(handler_id);
|
||||
}
|
||||
|
||||
void EventLoop::notify_forked(ForkEvent)
|
||||
{
|
||||
current().m_impl->notify_forked_and_in_child();
|
||||
}
|
||||
|
||||
intptr_t EventLoop::register_timer(EventReceiver& object, int milliseconds, bool should_reload, TimerShouldFireWhenNotVisible fire_when_not_visible)
|
||||
{
|
||||
return EventLoopManager::the().register_timer(object, milliseconds, should_reload, fire_when_not_visible);
|
||||
|
@ -161,9 +151,4 @@ void deferred_invoke(Function<void()> invokee)
|
|||
EventLoop::current().deferred_invoke(move(invokee));
|
||||
}
|
||||
|
||||
bool EventLoop::was_exit_requested() const
|
||||
{
|
||||
return m_impl->was_exit_requested();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue