LibCore: Remove unused Core::Event::Type::Quit

This commit is contained in:
Andreas Kling 2025-12-03 11:06:58 +01:00 committed by Andreas Kling
parent 96806a3f90
commit fa85f62895
Notes: github-actions[bot] 2025-12-03 12:28:04 +00:00
2 changed files with 1 additions and 8 deletions

View file

@ -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);