From 132ae2ca7c355436800c6b47a41deab2d327de35 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Mon, 28 Aug 2023 18:47:50 +0200 Subject: [PATCH] Remove unused stuff --- cli/kdeconnect-cli.cpp | 1 - core/filetransferjob.cpp | 1 - core/filetransferjob.h | 1 - indicator/main.cpp | 2 +- 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/cli/kdeconnect-cli.cpp b/cli/kdeconnect-cli.cpp index 79d998416..714e2c98a 100644 --- a/cli/kdeconnect-cli.cpp +++ b/cli/kdeconnect-cli.cpp @@ -84,7 +84,6 @@ int main(int argc, char **argv) parser.process(app); about.processCommandLine(&parser); - const QString id = QStringLiteral("kdeconnect-cli-") + QString::number(QCoreApplication::applicationPid()); DaemonDbusInterface iface; if (parser.isSet(QStringLiteral("my-id"))) { diff --git a/core/filetransferjob.cpp b/core/filetransferjob.cpp index 15ff14ec1..cee1acc57 100644 --- a/core/filetransferjob.cpp +++ b/core/filetransferjob.cpp @@ -23,7 +23,6 @@ FileTransferJob::FileTransferJob(const NetworkPacket *np, const QUrl &destinatio , m_reply(nullptr) , m_from(QStringLiteral("KDE Connect")) , m_destination(destination) - , m_speedBytes(0) , m_written(0) , m_size(np->payloadSize()) , m_np(np) diff --git a/core/filetransferjob.h b/core/filetransferjob.h index e17f3abc7..876e4ffb0 100644 --- a/core/filetransferjob.h +++ b/core/filetransferjob.h @@ -71,7 +71,6 @@ private: QString m_from; QUrl m_destination; QElapsedTimer m_timer; - qulonglong m_speedBytes; qint64 m_written; qint64 m_size; const NetworkPacket *m_np; diff --git a/indicator/main.cpp b/indicator/main.cpp index 7b1331862..17d5e62f9 100644 --- a/indicator/main.cpp +++ b/indicator/main.cpp @@ -87,7 +87,7 @@ int main(int argc, char **argv) DaemonDbusInterface iface; - auto refreshMenu = [&iface, &model, &menu, &helper, &dialog]() { + auto refreshMenu = [&iface, &model, &menu, &dialog]() { menu->clear(); auto configure = menu->addAction(QIcon::fromTheme(QStringLiteral("configure")), i18n("Configure...")); QObject::connect(configure, &QAction::triggered, configure, [&dialog]() {