mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00:00
LibCore: Remove unused methods from EventLoop
This commit is contained in:
committed by
Andrew Kaster
parent
37e1d6ece1
commit
e015a43b51
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user