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/UnitTests/Core/PageFaultTest.cpp | 2 -- Source/UnitTests/Core/PatchAllowlistTest.cpp | 3 --- .../UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp | 7 +------ Source/UnitTests/Core/PowerPC/Jit64Common/Fres.cpp | 1 - Source/UnitTests/Core/PowerPC/Jit64Common/Frsqrte.cpp | 2 -- 5 files changed, 1 insertion(+), 14 deletions(-) (limited to 'Source/UnitTests/Core') diff --git a/Source/UnitTests/Core/PageFaultTest.cpp b/Source/UnitTests/Core/PageFaultTest.cpp index c9c69d7d51..f780542761 100644 --- a/Source/UnitTests/Core/PageFaultTest.cpp +++ b/Source/UnitTests/Core/PageFaultTest.cpp @@ -2,11 +2,9 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include -#include #include "Common/CommonTypes.h" #include "Common/ScopeGuard.h" -#include "Common/Timer.h" #include "Core/Core.h" #include "Core/MemTools.h" #include "Core/PowerPC/JitCommon/JitBase.h" diff --git a/Source/UnitTests/Core/PatchAllowlistTest.cpp b/Source/UnitTests/Core/PatchAllowlistTest.cpp index 85111fb607..4fa6f0f328 100644 --- a/Source/UnitTests/Core/PatchAllowlistTest.cpp +++ b/Source/UnitTests/Core/PatchAllowlistTest.cpp @@ -3,7 +3,6 @@ #ifdef USE_RETRO_ACHIEVEMENTS -#include #include #include #include @@ -17,12 +16,10 @@ #include "Common/CommonPaths.h" #include "Common/Crypto/SHA1.h" #include "Common/FileUtil.h" -#include "Common/IOFile.h" #include "Common/IniFile.h" #include "Common/JsonUtil.h" #include "Core/AchievementManager.h" #include "Core/ActionReplay.h" -#include "Core/CheatCodes.h" #include "Core/GeckoCode.h" #include "Core/GeckoCodeConfig.h" #include "Core/PatchEngine.h" diff --git a/Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp b/Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp index c9f69d0de1..36604ee735 100644 --- a/Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp +++ b/Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp @@ -1,23 +1,18 @@ // Copyright 2019 Dolphin Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later -#include -#include - #include "Common/CommonTypes.h" #include "Common/ScopeGuard.h" #include "Common/x64ABI.h" #include "Core/Core.h" -#include "Core/PowerPC/Gekko.h" #include "Core/PowerPC/Interpreter/Interpreter_FPUtils.h" #include "Core/PowerPC/Jit64/Jit.h" #include "Core/PowerPC/Jit64Common/Jit64AsmCommon.h" -#include "Core/PowerPC/Jit64Common/Jit64PowerPCState.h" +#include "Core/PowerPC/Jit64Common/Jit64Constants.h" #include "Core/System.h" #include "../TestValues.h" -#include #include namespace diff --git a/Source/UnitTests/Core/PowerPC/Jit64Common/Fres.cpp b/Source/UnitTests/Core/PowerPC/Jit64Common/Fres.cpp index d3377070ca..bf92c65999 100644 --- a/Source/UnitTests/Core/PowerPC/Jit64Common/Fres.cpp +++ b/Source/UnitTests/Core/PowerPC/Jit64Common/Fres.cpp @@ -15,7 +15,6 @@ #include "../TestValues.h" -#include #include namespace diff --git a/Source/UnitTests/Core/PowerPC/Jit64Common/Frsqrte.cpp b/Source/UnitTests/Core/PowerPC/Jit64Common/Frsqrte.cpp index b395b4cd07..5af80075f0 100644 --- a/Source/UnitTests/Core/PowerPC/Jit64Common/Frsqrte.cpp +++ b/Source/UnitTests/Core/PowerPC/Jit64Common/Frsqrte.cpp @@ -2,7 +2,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include -#include #include "Common/CommonTypes.h" #include "Common/FloatUtils.h" @@ -17,7 +16,6 @@ #include "../TestValues.h" -#include #include namespace -- cgit v1.2.3