mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +00:00
LibCore: Remove unused CustomEvent
This commit is contained in:
parent
c47e253c60
commit
aec1f6aa7e
Notes:
github-actions[bot]
2025-08-11 14:56:58 +00:00
Author: https://github.com/awesomekling
Commit: aec1f6aa7e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5817
Reviewed-by: https://github.com/gmta ✅
3 changed files with 0 additions and 23 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue