[plasma/plasma-desktop] /: Remove unused non-trivial variable

Méven Car <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit da33d713e10a27cdcd904eaf70ec67c5fc186d29 by Méven Car, on behalf of Christoph Grüninger.
Committed on 29/07/2026 at 07:58.
Pushed by meven into branch 'master'.

Remove unused non-trivial variable

The variable in screenmappertest.cpp is a left-over from
2793b1b0dfab30cb47bf4e3121622ccf373830e2.
The variable in backend.cpp is a left-over from
bf37558f36494d13f0fe0f00862937d859aa20f1.
Found by Clazy (unused-non-trivial-variable).

M  +0    -1    applets/taskmanager/backend.cpp
M  +0    -1    containments/desktop/plugins/folder/autotests/screenmappertest.cpp
M  +0    -1    kcms/access/kcmaccess.cpp

https://invent.kde.org/plasma/plasma-desktop/-/commit/da33d713e10a27cdcd904eaf70ec67c5fc186d29

diff --git a/applets/taskmanager/backend.cpp b/applets/taskmanager/backend.cpp
index 8d68e41065..1005d2a981 100644
--- a/applets/taskmanager/backend.cpp
+++ b/applets/taskmanager/backend.cpp
@@ -382,7 +382,6 @@ QVariantList Backend::recentDocumentActions(const QUrl &launcherUrl, QObject *pa
     const QString downloadsPath = QStandardPaths::writableLocation(QStandardPaths::DownloadLocation);
 
     while (actionCount < 5 && resultIt != results.end()) {
-        const QString resource = (*resultIt).resource();
         const QString mimetype = (*resultIt).mimetype();
         const QUrl url = (*resultIt).url();
         ++resultIt;
diff --git a/containments/desktop/plugins/folder/autotests/screenmappertest.cpp b/containments/desktop/plugins/folder/autotests/screenmappertest.cpp
index 2e457339e1..ad9e2b1115 100644
--- a/containments/desktop/plugins/folder/autotests/screenmappertest.cpp
+++ b/containments/desktop/plugins/folder/autotests/screenmappertest.cpp
@@ -267,7 +267,6 @@ void ScreenMapperTest::tst_readAndSaveItemsOnActivitiesOnDisabledScreens()
     QCOMPARE(mapping.count(), expectedMapping.size() * expectedMapping[0].size());
 
     for (int i = 0; i < mapping.count() - (expectedMapping[0].size() - 1); i += expectedMapping[0].size()) {
-        const QStringList configGroup{mapping[i], mapping[i + 1], mapping[i + 2], mapping[i + 3], mapping[i + 4]};
         bool matched = false;
         for (const QStringList &expectedConfigGroup : expectedMapping) {
             if (expectedConfigGroup[0] == mapping[i] && expectedConfigGroup[1] == mapping[i + 1]) {
diff --git a/kcms/access/kcmaccess.cpp b/kcms/access/kcmaccess.cpp
index ef63931ff7..dcb3a5a26f 100644
--- a/kcms/access/kcmaccess.cpp
+++ b/kcms/access/kcmaccess.cpp
@@ -54,7 +54,6 @@ public:
         QRegularExpression re("\\d+");
         QRegularExpressionMatchIterator i = re.globalMatch(text);
 
-        QString numbers;
         while (i.hasNext()) {
             QRegularExpressionMatch match = i.next();
             strippedText += match.captured();
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.