From ba341f584e5e214bff4751514f435f14fbeabbf2 Mon Sep 17 00:00:00 2001
From: patrick96
Date: Sat, 11 Sep 2021 12:28:21 +0200
Subject: [PATCH] Remove CHECK event
Not used
---
include/events/types.hpp | 8 --------
src/components/controller.cpp | 2 --
2 files changed, 10 deletions(-)
diff --git a/include/events/types.hpp b/include/events/types.hpp
index a39fd0a0..515a7e37 100644
--- a/include/events/types.hpp
+++ b/include/events/types.hpp
@@ -9,7 +9,6 @@ POLYBAR_NS
enum class event_type {
NONE = 0,
UPDATE,
- CHECK,
QUIT,
};
@@ -46,13 +45,6 @@ namespace {
inline event make_update_evt(bool force = false) {
return event{static_cast(event_type::UPDATE), force};
}
-
- /**
- * Create CHECK event
- */
- inline event make_check_evt() {
- return event{static_cast(event_type::CHECK)};
- }
}
POLYBAR_NS_END
diff --git a/src/components/controller.cpp b/src/components/controller.cpp
index e19f2ce8..cbf8a10d 100644
--- a/src/components/controller.cpp
+++ b/src/components/controller.cpp
@@ -357,8 +357,6 @@ void controller::process_eventqueue() {
} else {
on(signals::eventqueue::exit_terminate{});
}
- } else if (evt.type == event_type::CHECK) {
- on(signals::eventqueue::check_state{});
} else {
m_log.warn("Unknown event type for enqueued event (%d)", evt.type);
}