From 610786ad2ec03c8f78f1eece610b9353c6220da0 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Mon, 10 Feb 2025 20:52:03 -0500 Subject: [PATCH] chore: clean up extra empty lines --- src/apps/deskflow-gui/MainWindow.cpp | 8 -------- src/lib/gui/messages.cpp | 2 -- 2 files changed, 10 deletions(-) diff --git a/src/apps/deskflow-gui/MainWindow.cpp b/src/apps/deskflow-gui/MainWindow.cpp index 50eeb06f3..ab92de1c6 100644 --- a/src/apps/deskflow-gui/MainWindow.cpp +++ b/src/apps/deskflow-gui/MainWindow.cpp @@ -230,7 +230,6 @@ void MainWindow::setupControls() // signal is emitted from the thread that owns the receiver's object. void MainWindow::connectSlots() { - connect(&Logger::instance(), &Logger::newLine, this, &MainWindow::handleLogLine); connect(this, &MainWindow::shown, this, &MainWindow::firstShown, Qt::QueuedConnection); @@ -238,21 +237,14 @@ void MainWindow::connectSlots() connect(&m_configScopes, &ConfigScopes::saving, this, &MainWindow::configScopesSaving, Qt::DirectConnection); connect(&m_appConfig, &AppConfig::tlsChanged, this, &MainWindow::appConfigTlsChanged); - connect(&m_appConfig, &AppConfig::screenNameChanged, this, &MainWindow::appConfigScreenNameChanged); - connect(&m_appConfig, &AppConfig::invertConnectionChanged, this, &MainWindow::appConfigInvertConnection); connect(&m_coreProcess, &CoreProcess::starting, this, &MainWindow::coreProcessStarting, Qt::DirectConnection); - connect(&m_coreProcess, &CoreProcess::error, this, &MainWindow::coreProcessError); - connect(&m_coreProcess, &CoreProcess::logLine, this, &MainWindow::handleLogLine); - connect(&m_coreProcess, &CoreProcess::processStateChanged, this, &MainWindow::coreProcessStateChanged); - connect(&m_coreProcess, &CoreProcess::connectionStateChanged, this, &MainWindow::coreConnectionStateChanged); - connect(&m_coreProcess, &CoreProcess::secureSocket, this, &MainWindow::coreProcessSecureSocket); connect(m_actionAbout, &QAction::triggered, this, &MainWindow::openAboutDialog); diff --git a/src/lib/gui/messages.cpp b/src/lib/gui/messages.cpp index 6f31f1b9f..017b6faa3 100644 --- a/src/lib/gui/messages.cpp +++ b/src/lib/gui/messages.cpp @@ -40,7 +40,6 @@ void raiseCriticalDialog() void showErrorDialog(const QString &message, const QString &fileLine, QtMsgType type) { - auto title = type == QtFatalMsg ? "Fatal error" : "Critical error"; QString text; if (type == QtFatalMsg) { @@ -96,7 +95,6 @@ QString fileLine(const QMessageLogContext &context) void messageHandler(QtMsgType type, const QMessageLogContext &context, const QString &message) { - const auto fileLine = messages::fileLine(context); Logger::instance().handleMessage(type, fileLine, message);