Skip to content

Truly independent web browser

LibCore: Remove unused accessors and event acceptance

Shannon Booth978f78d2e17b
diff --git a/Libraries/LibCore/Event.h b/Libraries/LibCore/Event.h
index b92970d0cf3..5b8535f1b65 100644
--- a/Libraries/LibCore/Event.h
+++ b/Libraries/LibCore/Event.h
@@ -33,13 +33,8 @@ public:
unsigned type() const { return m_type; }
- bool is_accepted() const { return m_accepted; }
- void accept() { m_accepted = true; }
- void ignore() { m_accepted = false; }
-
private:
unsigned m_type { Type::Invalid };
- bool m_accepted { true };
};
class TimerEvent final : public Event {
diff --git a/Libraries/LibCore/EventReceiver.h b/Libraries/LibCore/EventReceiver.h
index 37fcbcc5a65..518369113cc 100644
--- a/Libraries/LibCore/EventReceiver.h
+++ b/Libraries/LibCore/EventReceiver.h
@@ -54,7 +54,6 @@ public:
void start_timer(AK::Duration interval);
void stop_timer();
- bool has_timer() const { return m_timer_id; }
u64 timer_generation() const { return m_timer_generation; }
diff --git a/Libraries/LibCore/FileWatcher.h b/Libraries/LibCore/FileWatcher.h
index b8a6c5c18b4..c4c6f3c43fb 100644
--- a/Libraries/LibCore/FileWatcher.h
+++ b/Libraries/LibCore/FileWatcher.h
@@ -49,7 +49,6 @@ public:
ErrorOr<bool> add_watch(ByteString path, FileWatcherEvent::Type event_mask);
ErrorOr<bool> remove_watch(ByteString path);
- bool is_watching(ByteString const& path) const { return m_path_to_wd.find(path) != m_path_to_wd.end(); }
protected:
FileWatcherBase(int watcher_fd)