mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:17:34 +00:00
WindowServer: Remove some unused WSClientConnection functions
This commit is contained in:
parent
767f4c7421
commit
4f11528a65
1 changed files with 0 additions and 25 deletions
|
@ -32,11 +32,6 @@ public:
|
||||||
|
|
||||||
bool is_showing_modal_window() const;
|
bool is_showing_modal_window() const;
|
||||||
|
|
||||||
template<typename Matching, typename Callback>
|
|
||||||
void for_each_window_matching(Matching, Callback);
|
|
||||||
template<typename Callback>
|
|
||||||
void for_each_window(Callback);
|
|
||||||
|
|
||||||
void notify_about_new_screen_rect(const Rect&);
|
void notify_about_new_screen_rect(const Rect&);
|
||||||
void notify_about_clipboard_contents_changed();
|
void notify_about_clipboard_contents_changed();
|
||||||
void post_paint_message(WSWindow&);
|
void post_paint_message(WSWindow&);
|
||||||
|
@ -103,23 +98,3 @@ private:
|
||||||
|
|
||||||
RefPtr<SharedBuffer> m_last_sent_clipboard_content;
|
RefPtr<SharedBuffer> m_last_sent_clipboard_content;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename Matching, typename Callback>
|
|
||||||
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<typename Callback>
|
|
||||||
void WSClientConnection::for_each_window(Callback callback)
|
|
||||||
{
|
|
||||||
for (auto& it : m_windows) {
|
|
||||||
if (callback(*it.value) == IterationDecision::Break)
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue