[plasma/libkscreen] src: Remove unused maxPriority variable in adjustPriorities()

zhang shoucheng <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 18b0dddd069e3d71a69ad82e86f6a27dfa18a23e by zhang shoucheng.
Committed on 22/07/2026 at 08:03.
Pushed by vladz into branch 'master'.

Remove unused maxPriority variable in adjustPriorities()

M  +0    -5    src/config.cpp

https://invent.kde.org/plasma/libkscreen/-/commit/18b0dddd069e3d71a69ad82e86f6a27dfa18a23e

diff --git a/src/config.cpp b/src/config.cpp
index 9c4de4ba..3f81d526 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -326,13 +326,8 @@ void Config::adjustPriorities(std::optional<OutputPtr> keep)
 {
     // we need specifically tree-based QMap for this
     QMap<uint32_t, QList<OutputPtr>> multimap;
-    uint32_t maxPriority = 0;
     bool found = false;
 
-    for (const OutputPtr &output : d->outputs) {
-        maxPriority = std::max(maxPriority, output->priority());
-    }
-
     for (const OutputPtr &output : d->outputs) {
         if (keep.has_value() && keep.value() == output) {
             found = true;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.