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; - } -}