From 60e6e1f2425017c1ae07eaf7c9de2692da66eaae Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Sun, 7 Aug 2022 03:00:22 +0200 Subject: [PATCH] Qt: Fix Wunused-but-set-variable warnings. --- pcsx2-qt/MainWindow.cpp | 3 --- pcsx2-qt/Settings/ControllerSettingsDialog.cpp | 1 - 2 files changed, 4 deletions(-) diff --git a/pcsx2-qt/MainWindow.cpp b/pcsx2-qt/MainWindow.cpp index e886094860..7f8937a7a2 100644 --- a/pcsx2-qt/MainWindow.cpp +++ b/pcsx2-qt/MainWindow.cpp @@ -639,13 +639,10 @@ void MainWindow::setStyleFromSettings() // Alternative dark theme. qApp->setStyle(QStyleFactory::create("Fusion")); - const QColor lighterGray(75, 75, 75); const QColor gray(128, 128, 128); - const QColor black(25, 25, 25); const QColor slate(18, 18, 18); const QColor rubyish(172, 21, 31); - QPalette darkPalette; darkPalette.setColor(QPalette::Window, slate); darkPalette.setColor(QPalette::WindowText, Qt::white); diff --git a/pcsx2-qt/Settings/ControllerSettingsDialog.cpp b/pcsx2-qt/Settings/ControllerSettingsDialog.cpp index 3577c57de6..242a509d37 100644 --- a/pcsx2-qt/Settings/ControllerSettingsDialog.cpp +++ b/pcsx2-qt/Settings/ControllerSettingsDialog.cpp @@ -406,7 +406,6 @@ void ControllerSettingsDialog::updateListDescription(u32 global_slot, Controller const QVariant data(item->data(Qt::UserRole)); if (data.type() == QVariant::UInt && data.toUInt() == global_slot) { - const bool is_mtap_port = sioPadIsMultitapSlot(global_slot); const auto [port, slot] = sioConvertPadToPortAndSlot(global_slot); const bool mtap_enabled = getBoolValue("Pad", (port == 0) ? "MultitapPort1" : "MultitapPort2", false);