mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 12:46:06 +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,
|
Timer,
|
||||||
NotifierActivation,
|
NotifierActivation,
|
||||||
DeferredInvoke,
|
DeferredInvoke,
|
||||||
Custom,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Event() = default;
|
Event() = default;
|
||||||
|
@ -100,19 +99,4 @@ private:
|
||||||
NotificationType m_type;
|
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:
|
case Core::Event::Invalid:
|
||||||
VERIFY_NOT_REACHED();
|
VERIFY_NOT_REACHED();
|
||||||
break;
|
break;
|
||||||
case Core::Event::Custom:
|
|
||||||
return custom_event(static_cast<CustomEvent&>(event));
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -42,10 +40,6 @@ void EventReceiver::timer_event(Core::TimerEvent&)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void EventReceiver::custom_event(CustomEvent&)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void EventReceiver::start_timer(int ms)
|
void EventReceiver::start_timer(int ms)
|
||||||
{
|
{
|
||||||
if (m_timer_id) {
|
if (m_timer_id) {
|
||||||
|
|
|
@ -73,7 +73,6 @@ protected:
|
||||||
virtual void event(Core::Event&);
|
virtual void event(Core::Event&);
|
||||||
|
|
||||||
virtual void timer_event(TimerEvent&);
|
virtual void timer_event(TimerEvent&);
|
||||||
virtual void custom_event(CustomEvent&);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
intptr_t m_timer_id { 0 };
|
intptr_t m_timer_id { 0 };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue