mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibCore: Remove ability to post heap-allocated Core::Event objects
We no longer need this API since all clients have been converted to simply posting the Core::Event::Type (or a callback function).
This commit is contained in:
parent
2a1c5dc108
commit
cebc4d00dd
Notes:
github-actions[bot]
2025-12-03 12:27:38 +00:00
Author: https://github.com/awesomekling
Commit: cebc4d00dd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7004
14 changed files with 1 additions and 69 deletions
|
|
@ -102,11 +102,6 @@ size_t EventLoop::pump(WaitMode mode)
|
|||
return m_impl->pump(mode == WaitMode::WaitForEvents ? EventLoopImplementation::PumpMode::WaitForEvents : EventLoopImplementation::PumpMode::DontWaitForEvents);
|
||||
}
|
||||
|
||||
void EventLoop::post_event(EventReceiver& receiver, NonnullOwnPtr<Event>&& event)
|
||||
{
|
||||
m_impl->post_event(&receiver, move(event));
|
||||
}
|
||||
|
||||
void EventLoop::add_job(NonnullRefPtr<Promise<NonnullRefPtr<EventReceiver>>> job_promise)
|
||||
{
|
||||
ThreadEventQueue::current().add_job(move(job_promise));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue