From aec1f6aa7e1ca7081ad0600e84f024f478524f1e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 11 Aug 2025 12:15:06 +0200 Subject: [PATCH] LibCore: Remove unused CustomEvent --- Libraries/LibCore/Event.h | 16 ---------------- Libraries/LibCore/EventReceiver.cpp | 6 ------ Libraries/LibCore/EventReceiver.h | 1 - 3 files changed, 23 deletions(-) diff --git a/Libraries/LibCore/Event.h b/Libraries/LibCore/Event.h index 3dca54bace6..75ac1fa4413 100644 --- a/Libraries/LibCore/Event.h +++ b/Libraries/LibCore/Event.h @@ -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 }; -}; - } diff --git a/Libraries/LibCore/EventReceiver.cpp b/Libraries/LibCore/EventReceiver.cpp index 778f8dd7412..304a4a65683 100644 --- a/Libraries/LibCore/EventReceiver.cpp +++ b/Libraries/LibCore/EventReceiver.cpp @@ -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(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) { diff --git a/Libraries/LibCore/EventReceiver.h b/Libraries/LibCore/EventReceiver.h index 172cd394795..2cea2600504 100644 --- a/Libraries/LibCore/EventReceiver.h +++ b/Libraries/LibCore/EventReceiver.h @@ -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 };