mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibCore: Remove unused CustomEvent
This commit is contained in:
parent
c47e253c60
commit
aec1f6aa7e
|
|
@ -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 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user