mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 13:50:00 +00:00
LibCore: Simplify how we calculate processed event count
This commit is contained in:
parent
25764fbc54
commit
05e449d32a
Notes:
github-actions[bot]
2025-12-03 12:27:25 +00:00
Author: https://github.com/awesomekling
Commit: 05e449d32a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7004
1 changed files with 1 additions and 3 deletions
|
|
@ -114,7 +114,6 @@ size_t ThreadEventQueue::process()
|
|||
m_private->pending_promises.remove_all_matching([](auto& job) { return job->is_resolved() || job->is_rejected(); });
|
||||
}
|
||||
|
||||
size_t processed_events = 0;
|
||||
for (auto& queued_event : events) {
|
||||
if (auto receiver = queued_event.receiver.strong_ref()) {
|
||||
switch (queued_event.event_type) {
|
||||
|
|
@ -138,10 +137,9 @@ size_t ThreadEventQueue::process()
|
|||
// Receiver gone, drop the event.
|
||||
}
|
||||
}
|
||||
++processed_events;
|
||||
}
|
||||
|
||||
return processed_events;
|
||||
return events.size();
|
||||
}
|
||||
|
||||
bool ThreadEventQueue::has_pending_events() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue