From d95b65480f1db5fc38ff2d3c4d21630e92c5a29b Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Sun, 7 Oct 2018 19:31:33 +0300 Subject: [PATCH] Delete unused function Summary: The function was introduced in 2d99ef918bbd797701ac63c8e3d4d7ca05f64651. It's not used anywhere plus we don't need it anymore because AbstractClient::isActiveFullscreen checks main clients. Test Plan: Compiles. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D16022 --- layers.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/layers.cpp b/layers.cpp index caa7db1d3b..55c97fe3a3 100644 --- a/layers.cpp +++ b/layers.cpp @@ -809,14 +809,4 @@ bool Client::belongsToDesktop() const return false; } -bool rec_checkTransientOnTop(const QList &transients, const Client *topmost) -{ - foreach (const AbstractClient *transient, transients) { - if (transient == topmost || rec_checkTransientOnTop(transient->transients(), topmost)) { - return true; - } - } - return false; -} - } // namespace