[plasma/libkscreen/Plasma/6.7] src: Remove unused maxPriority variable in adjustPriorities()
Vlad Zahorodnii <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 523ccaab63520d2b4b1ce2aefebb166fd76f445f by Vlad Zahorodnii. Committed on 22/07/2026 at 08:20. Pushed by vladz into branch 'Plasma/6.7'. Remove unused maxPriority variable in adjustPriorities() (cherry picked from commit 18b0dddd069e3d71a69ad82e86f6a27dfa18a23e) Co-authored-by: zhang shoucheng <[email protected]> M +0 -5 src/config.cpp https://invent.kde.org/plasma/libkscreen/-/commit/523ccaab63520d2b4b1ce2aefebb166fd76f445f diff --git a/src/config.cpp b/src/config.cpp index 553538f0..23788d7d 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -352,13 +352,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;