From 91993b46d9ca78418e549ca422b7399a15ec670c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 22 Nov 2019 15:19:45 -0500 Subject: [PATCH] InputCommon/IMU*: Remove unnecessary includes Trims out unnecessary includes to avoid unnecessary header dependencies. This also resolves indirect inclusions of within IMUAccelerometer.h and IMUGyroscope.h --- .../ControllerEmu/ControlGroup/IMUAccelerometer.cpp | 7 ++----- .../ControllerEmu/ControlGroup/IMUAccelerometer.h | 2 +- .../InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp | 3 +-- .../InputCommon/ControllerEmu/ControlGroup/IMUCursor.h | 4 ++-- .../ControllerEmu/ControlGroup/IMUGyroscope.cpp | 7 ++----- .../InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.h | 2 +- 6 files changed, 9 insertions(+), 16 deletions(-) diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.cpp index e994ceba5d..52a9d47a1a 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.cpp @@ -4,16 +4,13 @@ #include "InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.h" +#include + #include "Common/Common.h" -#include "Common/MathUtil.h" - #include "Core/HW/WiimoteEmu/WiimoteEmu.h" - #include "InputCommon/ControlReference/ControlReference.h" #include "InputCommon/ControllerEmu/Control/Control.h" #include "InputCommon/ControllerEmu/Control/Input.h" -#include "InputCommon/ControllerEmu/ControllerEmu.h" -#include "InputCommon/ControllerEmu/Setting/NumericSetting.h" namespace ControllerEmu { diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.h b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.h index 7ac41ede7a..b5d8e0c935 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.h +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.h @@ -4,11 +4,11 @@ #pragma once +#include #include #include "Common/Matrix.h" #include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h" -#include "InputCommon/ControllerInterface/Device.h" namespace ControllerEmu { diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp index 9eedbf0747..3e6aecb348 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp @@ -4,6 +4,7 @@ #include "InputCommon/ControllerEmu/ControlGroup/IMUCursor.h" +#include #include #include "Common/Common.h" @@ -12,8 +13,6 @@ #include "InputCommon/ControlReference/ControlReference.h" #include "InputCommon/ControllerEmu/Control/Control.h" #include "InputCommon/ControllerEmu/Control/Input.h" -#include "InputCommon/ControllerEmu/ControllerEmu.h" -#include "InputCommon/ControllerEmu/Setting/NumericSetting.h" namespace ControllerEmu { diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.h b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.h index 578762fb85..95a7d89dad 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.h +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.h @@ -4,10 +4,10 @@ #pragma once -#include #include -#include "InputCommon/ControllerEmu/StickGate.h" +#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h" +#include "InputCommon/ControllerEmu/Setting/NumericSetting.h" #include "InputCommon/ControllerInterface/Device.h" namespace ControllerEmu diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp index 7bae049fff..3a1ed14b7d 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.cpp @@ -4,16 +4,13 @@ #include "InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.h" -#include "Common/Common.h" -#include "Common/MathUtil.h" +#include -#include "Core/HW/WiimoteEmu/WiimoteEmu.h" +#include "Common/Common.h" #include "InputCommon/ControlReference/ControlReference.h" #include "InputCommon/ControllerEmu/Control/Control.h" #include "InputCommon/ControllerEmu/Control/Input.h" -#include "InputCommon/ControllerEmu/ControllerEmu.h" -#include "InputCommon/ControllerEmu/Setting/NumericSetting.h" namespace ControllerEmu { diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.h b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.h index dac30143dc..c173c2f8b2 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.h +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUGyroscope.h @@ -4,11 +4,11 @@ #pragma once +#include #include #include "Common/Matrix.h" #include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h" -#include "InputCommon/ControllerInterface/Device.h" namespace ControllerEmu {