From 4f11528a655e695dcca10a91e06bce23c0feaabc Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 4 Jan 2020 10:41:42 +0100 Subject: [PATCH] WindowServer: Remove some unused WSClientConnection functions --- Servers/WindowServer/WSClientConnection.h | 25 ----------------------- 1 file changed, 25 deletions(-) diff --git a/Servers/WindowServer/WSClientConnection.h b/Servers/WindowServer/WSClientConnection.h index a32768c4fa..de3e1ba66d 100644 --- a/Servers/WindowServer/WSClientConnection.h +++ b/Servers/WindowServer/WSClientConnection.h @@ -32,11 +32,6 @@ public: bool is_showing_modal_window() const; - template - void for_each_window_matching(Matching, Callback); - template - void for_each_window(Callback); - void notify_about_new_screen_rect(const Rect&); void notify_about_clipboard_contents_changed(); void post_paint_message(WSWindow&); @@ -103,23 +98,3 @@ private: RefPtr m_last_sent_clipboard_content; }; - -template -void WSClientConnection::for_each_window_matching(Matching matching, Callback callback) -{ - for (auto& it : m_windows) { - if (matching(*it.value)) { - if (callback(*it.value) == IterationDecision::Break) - return; - } - } -} - -template -void WSClientConnection::for_each_window(Callback callback) -{ - for (auto& it : m_windows) { - if (callback(*it.value) == IterationDecision::Break) - return; - } -}