mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 21:12:08 +02: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:
committed by
Andreas Kling
parent
2a1c5dc108
commit
cebc4d00dd
Notes:
github-actions[bot]
2025-12-03 12:27:38 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/cebc4d00ddf Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7004
@@ -314,13 +314,6 @@ void EventLoopImplementationUnix::quit(int code)
|
||||
m_exit_code = code;
|
||||
}
|
||||
|
||||
void EventLoopImplementationUnix::post_event(EventReceiver* receiver, NonnullOwnPtr<Event>&& event)
|
||||
{
|
||||
m_thread_event_queue.post_event(receiver, move(event));
|
||||
if (&m_thread_event_queue != &ThreadEventQueue::current())
|
||||
wake();
|
||||
}
|
||||
|
||||
void EventLoopImplementationUnix::wake()
|
||||
{
|
||||
int wake_event = 0;
|
||||
|
||||
Reference in New Issue
Block a user