From cc1bd42f1683b58319fd6ae541bfb06fd38001fd Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 29 Mar 2022 13:27:12 +0300 Subject: [PATCH] Drop Screens::number() --- src/screens.cpp | 5 ----- src/screens.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/screens.cpp b/src/screens.cpp index 60e4d142b1..5fe2ea101e 100644 --- a/src/screens.cpp +++ b/src/screens.cpp @@ -109,11 +109,6 @@ void Screens::setCount(int count) Q_EMIT countChanged(previous, count); } -int Screens::number(const QPoint &pos) const -{ - return kwinApp()->platform()->enabledOutputs().indexOf(kwinApp()->platform()->outputAt(pos)); -} - AbstractOutput *Screens::findOutput(int screen) const { return kwinApp()->platform()->findOutput(screen); diff --git a/src/screens.h b/src/screens.h index cb990331af..0f5a85d802 100644 --- a/src/screens.h +++ b/src/screens.h @@ -62,7 +62,6 @@ public: * @see sizeChanged() */ QSize size() const; - int number(const QPoint &pos) const; Q_SIGNALS: void countChanged(int previousCount, int newCount);