From 7d66b07ef70822828a9e3f24e42f0a24a6451fc8 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Fri, 21 Jul 2023 14:04:32 +0300 Subject: [PATCH] Remove unused createId methods --- interfaces/devicesmodel.cpp | 7 ------- kcm/kcm.cpp | 5 ----- 2 files changed, 12 deletions(-) diff --git a/interfaces/devicesmodel.cpp b/interfaces/devicesmodel.cpp index 9763e2152..8ec2a6aae 100644 --- a/interfaces/devicesmodel.cpp +++ b/interfaces/devicesmodel.cpp @@ -19,13 +19,6 @@ #include "interfaces_debug.h" -static QString createId() -{ - return QCoreApplication::instance()->applicationName() + QString::number(QCoreApplication::applicationPid()); -} - -Q_GLOBAL_STATIC_WITH_ARGS(QString, s_keyId, (createId())); - DevicesModel::DevicesModel(QObject *parent) : QAbstractListModel(parent) , m_dbusInterface(new DaemonDbusInterface(this)) diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index 84314fd01..3cec6c5e9 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -22,11 +22,6 @@ K_PLUGIN_CLASS_WITH_JSON(KdeConnectKcm, "kcm_kdeconnect.json") -static QString createId() -{ - return QStringLiteral("kcm") + QString::number(QCoreApplication::applicationPid()); -} - KdeConnectKcm::KdeConnectKcm(QObject *parent, const QVariantList &args) : KCModule(qobject_cast(parent)) , kcmUi(new Ui::KdeConnectKcmUi())