mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibCore: Remove unused Core::Event::Type::Quit
This commit is contained in:
parent
96806a3f90
commit
fa85f62895
Notes:
github-actions[bot]
2025-12-03 12:28:04 +00:00
Author: https://github.com/awesomekling
Commit: fa85f62895
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7004
2 changed files with 1 additions and 8 deletions
|
|
@ -108,13 +108,7 @@ size_t ThreadEventQueue::process()
|
|||
if (event.type() == Event::Type::DeferredInvoke) {
|
||||
static_cast<DeferredInvocationEvent&>(event).m_invokee();
|
||||
} else if (!receiver) {
|
||||
switch (event.type()) {
|
||||
case Event::Quit:
|
||||
VERIFY_NOT_REACHED();
|
||||
default:
|
||||
// Receiver disappeared, drop the event on the floor.
|
||||
break;
|
||||
}
|
||||
// Receiver disappeared, drop the event on the floor.
|
||||
} else {
|
||||
NonnullRefPtr<EventReceiver> protector(*receiver);
|
||||
receiver->dispatch_event(event);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue