[plasma/kscreen] /: console, kcm: remove redundant code

Vlad Zahorodnii <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 6ca761a1bf947d7a57866811b1b5e39fc4f253f7 by Vlad Zahorodnii, on behalf of Li Kai.
Committed on 24/07/2026 at 07:38.
Pushed by vladz into branch 'master'.

console, kcm: remove redundant code

Remove an unused QJsonDocument variable and a duplicate replication
source comparison.

M  +0    -1    console/console.cpp
M  +0    -1    kcm/config_handler.cpp

https://invent.kde.org/plasma/kscreen/-/commit/6ca761a1bf947d7a57866811b1b5e39fc4f253f7

diff --git a/console/console.cpp b/console/console.cpp
index 4a299887..e3008669 100644
--- a/console/console.cpp
+++ b/console/console.cpp
@@ -143,7 +143,6 @@ void Console::printSerializations()
         const QStringList files = dir.entryList(QDir::Files);
         qDebug() << "Number of files: " << files.count() << Qt::endl;
 
-        QJsonDocument parser;
         for (const QString &fileName : files) {
             QJsonParseError error;
             qDebug() << fileName;
diff --git a/kcm/config_handler.cpp b/kcm/config_handler.cpp
index 966c6dd8..0184b407 100644
--- a/kcm/config_handler.cpp
+++ b/kcm/config_handler.cpp
@@ -163,7 +163,6 @@ bool ConfigHandler::checkSaveandTestCommon(bool isSaveCheck)
                     || output->colorProfileSource() != config->colorProfileSource()
                     || (isSaveCheck && output->brightness() != config->brightness())
                     || output->colorPowerPreference() != config->colorPowerPreference()
-                    || output->replicationSource() != config->replicationSource()
                     || output->ddcCiAllowed() != config->ddcCiAllowed()
                     || output->maxBitsPerColor() != config->maxBitsPerColor()
                     || (isSaveCheck && output->edrPolicy() != config->edrPolicy())
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.