LibCore: Remove unused methods from EventLoop

This commit is contained in:
Lucas CHOLLET 2025-01-04 22:42:22 -05:00 committed by Andrew Kaster
parent 37e1d6ece1
commit e015a43b51
Notes: github-actions[bot] 2025-01-30 22:35:42 +00:00
9 changed files with 1 additions and 89 deletions

View file

@ -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();
}
}