LibCore: Remove unused EventLoopManager::wake()

Only EventLoopImplementation needs to know how to wake up.
This commit is contained in:
Andreas Kling 2023-04-26 19:00:22 +02:00 committed by Sam Atkins
parent 12c73915dc
commit f61947fa9e
5 changed files with 0 additions and 16 deletions

View file

@ -165,10 +165,6 @@ EventLoopManagerQt::EventLoopManagerQt()
EventLoopManagerQt::~EventLoopManagerQt() = default;
void EventLoopManagerQt::wake()
{
}
NonnullOwnPtr<Core::EventLoopImplementation> EventLoopManagerQt::make_implementation()
{
return adopt_own(*new EventLoopImplementationQt);

View file

@ -30,8 +30,6 @@ public:
virtual void did_post_event() override;
virtual void wake() override;
// FIXME: These APIs only exist for obscure use-cases inside SerenityOS. Try to get rid of them.
virtual int register_signal(int, Function<void(int)>) override { return 0; }
virtual void unregister_signal(int) override { }

View file

@ -35,8 +35,6 @@ public:
virtual int register_signal(int signal_number, Function<void(int)> handler) = 0;
virtual void unregister_signal(int handler_id) = 0;
virtual void wake() = 0;
protected:
EventLoopManager();
};

View file

@ -139,12 +139,6 @@ void EventLoopImplementationUnix::wake()
MUST(Core::System::write((*m_wake_pipe_fds)[1], { &wake_event, sizeof(wake_event) }));
}
void EventLoopManagerUnix::wake()
{
int wake_event = 0;
MUST(Core::System::write(ThreadData::the().wake_pipe_fds[1], { &wake_event, sizeof(wake_event) }));
}
void EventLoopManagerUnix::wait_for_events(EventLoopImplementation::PumpMode mode)
{
auto& thread_data = ThreadData::the();

View file

@ -27,8 +27,6 @@ public:
virtual int register_signal(int signal_number, Function<void(int)> handler) override;
virtual void unregister_signal(int handler_id) override;
virtual void wake() override;
void wait_for_events(EventLoopImplementation::PumpMode);
static Optional<Time> get_next_timer_expiration();