From 14121c550463aa4cbf41135b9f2afbce2a98d5b7 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Wed, 31 Jan 2024 22:53:43 +0100 Subject: [PATCH] Core/ConfigManager: Remove dead bAutomaticStart flag. --- Source/Core/Core/ConfigManager.cpp | 1 - Source/Core/Core/ConfigManager.h | 1 - Source/Core/DolphinQt/MenuBar.cpp | 8 -------- Source/Core/DolphinQt/MenuBar.h | 1 - 4 files changed, 11 deletions(-) diff --git a/Source/Core/Core/ConfigManager.cpp b/Source/Core/Core/ConfigManager.cpp index 8f6de5f79d..b8e812dc53 100644 --- a/Source/Core/Core/ConfigManager.cpp +++ b/Source/Core/Core/ConfigManager.cpp @@ -219,7 +219,6 @@ void SConfig::OnNewTitleLoad(const Core::CPUThreadGuard& guard) void SConfig::LoadDefaults() { - bAutomaticStart = false; bBootToPause = false; auto& system = Core::System::GetInstance(); diff --git a/Source/Core/Core/ConfigManager.h b/Source/Core/Core/ConfigManager.h index 29e75abd23..999cc9f86c 100644 --- a/Source/Core/Core/ConfigManager.h +++ b/Source/Core/Core/ConfigManager.h @@ -44,7 +44,6 @@ struct BootParameters; struct SConfig { // Settings - bool bAutomaticStart = false; bool bBootToPause = false; bool bJITNoBlockCache = false; diff --git a/Source/Core/DolphinQt/MenuBar.cpp b/Source/Core/DolphinQt/MenuBar.cpp index 063c5d8de9..07d4d21cbb 100644 --- a/Source/Core/DolphinQt/MenuBar.cpp +++ b/Source/Core/DolphinQt/MenuBar.cpp @@ -172,7 +172,6 @@ void MenuBar::OnDebugModeToggled(bool enabled) { // Options m_boot_to_pause->setVisible(enabled); - m_automatic_start->setVisible(enabled); m_reset_ignore_panic_handler->setVisible(enabled); m_change_font->setVisible(enabled); @@ -573,13 +572,6 @@ void MenuBar::AddOptionsMenu() connect(m_boot_to_pause, &QAction::toggled, this, [](bool enable) { SConfig::GetInstance().bBootToPause = enable; }); - m_automatic_start = options_menu->addAction(tr("&Automatic Start")); - m_automatic_start->setCheckable(true); - m_automatic_start->setChecked(SConfig::GetInstance().bAutomaticStart); - - connect(m_automatic_start, &QAction::toggled, this, - [](bool enable) { SConfig::GetInstance().bAutomaticStart = enable; }); - m_reset_ignore_panic_handler = options_menu->addAction(tr("Reset Ignore Panic Handler")); connect(m_reset_ignore_panic_handler, &QAction::triggered, this, []() { diff --git a/Source/Core/DolphinQt/MenuBar.h b/Source/Core/DolphinQt/MenuBar.h index 6ddf7150cf..d13e8ae4b3 100644 --- a/Source/Core/DolphinQt/MenuBar.h +++ b/Source/Core/DolphinQt/MenuBar.h @@ -241,7 +241,6 @@ private: // Options QAction* m_boot_to_pause; - QAction* m_automatic_start; QAction* m_reset_ignore_panic_handler; QAction* m_change_font; QAction* m_controllers_action;