LibCore: Remove unused CustomEvent

This commit is contained in:
Andreas Kling 2025-08-11 12:15:06 +02:00 committed by Andreas Kling
commit aec1f6aa7e
Notes: github-actions[bot] 2025-08-11 14:56:58 +00:00
3 changed files with 0 additions and 23 deletions

View file

@ -24,7 +24,6 @@ public:
Timer,
NotifierActivation,
DeferredInvoke,
Custom,
};
Event() = default;
@ -100,19 +99,4 @@ private:
NotificationType m_type;
};
class CustomEvent : public Event {
public:
CustomEvent(int custom_type)
: Event(Event::Type::Custom)
, m_custom_type(custom_type)
{
}
~CustomEvent() = default;
int custom_type() const { return m_custom_type; }
private:
int m_custom_type { 0 };
};
}

View file

@ -31,8 +31,6 @@ void EventReceiver::event(Core::Event& event)
case Core::Event::Invalid:
VERIFY_NOT_REACHED();
break;
case Core::Event::Custom:
return custom_event(static_cast<CustomEvent&>(event));
default:
break;
}
@ -42,10 +40,6 @@ void EventReceiver::timer_event(Core::TimerEvent&)
{
}
void EventReceiver::custom_event(CustomEvent&)
{
}
void EventReceiver::start_timer(int ms)
{
if (m_timer_id) {

View file

@ -73,7 +73,6 @@ protected:
virtual void event(Core::Event&);
virtual void timer_event(TimerEvent&);
virtual void custom_event(CustomEvent&);
private:
intptr_t m_timer_id { 0 };