From abfaff8ca9b6ef0ac7c899da3dcccb6abc8bb621 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 21 Feb 2018 16:30:08 -0500 Subject: [PATCH] Qt: Remove unnecessary includes injects a static constructor into the translation units that it's included into. This is trivially avoidable in these cases. --- Source/Core/DolphinQt2/Config/CheatWarningWidget.cpp | 8 ++------ Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp | 2 -- .../Core/DolphinQt2/Config/Mapping/MappingIndicator.cpp | 2 -- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Source/Core/DolphinQt2/Config/CheatWarningWidget.cpp b/Source/Core/DolphinQt2/Config/CheatWarningWidget.cpp index 85acbfc9bb..e2bd437a4c 100644 --- a/Source/Core/DolphinQt2/Config/CheatWarningWidget.cpp +++ b/Source/Core/DolphinQt2/Config/CheatWarningWidget.cpp @@ -10,8 +10,6 @@ #include #include -#include - #include "Core/ConfigManager.h" #include "Core/Core.h" #include "DolphinQt2/Settings.h" @@ -23,10 +21,8 @@ CheatWarningWidget::CheatWarningWidget(const std::string& game_id) : m_game_id(g connect(&Settings::Instance(), &Settings::EnableCheatsChanged, [this] { Update(Core::IsRunning()); }); - connect(&Settings::Instance(), &Settings::EmulationStateChanged, [this](Core::State state) { - std::cout << (state == Core::State::Running) << std::endl; - Update(state == Core::State::Running); - }); + connect(&Settings::Instance(), &Settings::EmulationStateChanged, + [this](Core::State state) { Update(state == Core::State::Running); }); Update(Core::IsRunning()); } diff --git a/Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp b/Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp index 147602e7a8..ea5fe665a4 100644 --- a/Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp +++ b/Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp @@ -9,8 +9,6 @@ #include #include -#include - #include "DolphinQt2/Config/Mapping/MappingButton.h" #include "Common/Thread.h" diff --git a/Source/Core/DolphinQt2/Config/Mapping/MappingIndicator.cpp b/Source/Core/DolphinQt2/Config/Mapping/MappingIndicator.cpp index c10a6d9f5c..a7bf10a63f 100644 --- a/Source/Core/DolphinQt2/Config/Mapping/MappingIndicator.cpp +++ b/Source/Core/DolphinQt2/Config/Mapping/MappingIndicator.cpp @@ -10,8 +10,6 @@ #include #include -#include - #include "InputCommon/ControlReference/ControlReference.h" #include "InputCommon/ControllerEmu/Control/Control.h" #include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"