mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-08 00:59:44 +00:00
LibCore: Remove unused methods from EventLoop
This commit is contained in:
parent
37e1d6ece1
commit
e015a43b51
Notes:
github-actions[bot]
2025-01-30 22:35:42 +00:00
Author: https://github.com/LucasChollet
Commit: e015a43b51
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3145
Reviewed-by: https://github.com/ADKaster ✅
9 changed files with 1 additions and 89 deletions
|
@ -330,17 +330,6 @@ void EventLoopImplementationUnix::quit(int code)
|
|||
m_exit_code = code;
|
||||
}
|
||||
|
||||
void EventLoopImplementationUnix::unquit()
|
||||
{
|
||||
m_exit_requested = false;
|
||||
m_exit_code = 0;
|
||||
}
|
||||
|
||||
bool EventLoopImplementationUnix::was_exit_requested() const
|
||||
{
|
||||
return m_exit_requested;
|
||||
}
|
||||
|
||||
void EventLoopImplementationUnix::post_event(EventReceiver& receiver, NonnullOwnPtr<Event>&& event)
|
||||
{
|
||||
m_thread_event_queue.post_event(receiver, move(event));
|
||||
|
@ -522,21 +511,6 @@ void EventLoopManagerUnix::dispatch_signal(int signal_number)
|
|||
}
|
||||
}
|
||||
|
||||
void EventLoopImplementationUnix::notify_forked_and_in_child()
|
||||
{
|
||||
auto& thread_data = ThreadData::the();
|
||||
thread_data.timeouts.clear();
|
||||
thread_data.poll_fds.clear();
|
||||
thread_data.notifier_by_ptr.clear();
|
||||
thread_data.notifier_by_index.clear();
|
||||
thread_data.initialize_wake_pipe();
|
||||
if (auto* info = signals_info<false>()) {
|
||||
info->signal_handlers.clear();
|
||||
info->next_signal_id = 0;
|
||||
}
|
||||
thread_data.pid = getpid();
|
||||
}
|
||||
|
||||
SignalHandlers::SignalHandlers(int signal_number, void (*handle_signal)(int))
|
||||
: m_signal_number(signal_number)
|
||||
, m_original_handler(signal(signal_number, handle_signal))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue