From a14c88ba67a51b0a563a5fc800cd089e82ffacaf Mon Sep 17 00:00:00 2001 From: Martino Fontana Date: Fri, 23 Jan 2026 21:30:01 +0100 Subject: Remove unused imports Yellow squiggly lines begone! Done automatically on .cpp files through `run-clang-tidy`, with manual corrections to the mistakes. If an import is directly used, but is technically unnecessary since it's recursively imported by something else, it is *not* removed. The tool doesn't touch .h files, so I did some of them by hand while fixing errors due to old recursive imports. Not everything is removed, but the cleanup should be substantial enough. Because this done on Linux, code that isn't used on it is mostly untouched. (Hopefully no open PR is depending on these imports...) --- Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp | 1 - .../ControllerInterface/DualShockUDPClient/DualShockUDPClient.cpp | 1 - .../ControllerInterface/DualShockUDPClient/DualShockUDPClient.h | 3 ++- .../ControllerInterface/DualShockUDPClient/DualShockUDPProto.h | 1 + Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp | 1 - Source/Core/InputCommon/ControllerInterface/SteamDeck/SteamDeck.cpp | 2 -- 6 files changed, 3 insertions(+), 6 deletions(-) (limited to 'Source/Core/InputCommon/ControllerInterface') diff --git a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp index 41ef16c330..7197aa1fed 100644 --- a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp +++ b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp @@ -13,7 +13,6 @@ #include #include "Common/MathUtil.h" -#include "Common/Thread.h" namespace ciface::Core { diff --git a/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.cpp b/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.cpp index cac67e1b8a..2247dabbda 100644 --- a/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.cpp +++ b/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.cpp @@ -20,7 +20,6 @@ #include "Common/ScopeGuard.h" #include "Common/StringUtil.h" #include "Common/Thread.h" -#include "Core/CoreTiming.h" #include "InputCommon/ControllerInterface/ControllerInterface.h" #include "InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPProto.h" #include "SFML/Network/IpAddress.hpp" diff --git a/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.h b/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.h index 7f2d62fb58..f913e1521a 100644 --- a/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.h +++ b/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.h @@ -3,7 +3,8 @@ #pragma once -#include "Common/Config/Config.h" +#include "Common/CommonTypes.h" +#include "Common/Config/ConfigInfo.h" #include "InputCommon/ControllerInterface/InputBackend.h" namespace ciface::DualShockUDPClient diff --git a/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPProto.h b/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPProto.h index 6d0559ca52..1fa0438a90 100644 --- a/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPProto.h +++ b/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPProto.h @@ -9,6 +9,7 @@ #include "Common/CommonTypes.h" #include "Common/Hash.h" +#include "Common/Logging/Log.h" namespace ciface::DualShockUDPClient::Proto { diff --git a/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp b/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp index 50175ebaf7..20baa74be9 100644 --- a/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp +++ b/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp @@ -12,7 +12,6 @@ #include #include #include -#include #include #include diff --git a/Source/Core/InputCommon/ControllerInterface/SteamDeck/SteamDeck.cpp b/Source/Core/InputCommon/ControllerInterface/SteamDeck/SteamDeck.cpp index f8615d138b..b78c56afc6 100644 --- a/Source/Core/InputCommon/ControllerInterface/SteamDeck/SteamDeck.cpp +++ b/Source/Core/InputCommon/ControllerInterface/SteamDeck/SteamDeck.cpp @@ -3,8 +3,6 @@ #include "InputCommon/ControllerInterface/SteamDeck/SteamDeck.h" -#include - #include #include "Common/CommonTypes.h" -- cgit v1.2.3