diff options
| author | Martino Fontana <tinozzo123@gmail.com> | 2026-01-23 21:30:01 +0100 |
|---|---|---|
| committer | Martino Fontana <tinozzo123@gmail.com> | 2026-01-25 16:12:15 +0100 |
| commit | a14c88ba67a51b0a563a5fc800cd089e82ffacaf (patch) | |
| tree | 4263ea748b1b70960a1e28ae89cd26a361be4faf /Source/Core/VideoBackends/Vulkan | |
| parent | cdbea8867df3d0a6fc375e78726dae95612fb1fd (diff) | |
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...)
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan')
13 files changed, 4 insertions, 34 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp b/Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp index b325b1428c..c82417eb8c 100644 --- a/Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp +++ b/Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp @@ -8,7 +8,6 @@ #include "Common/Assert.h" #include "Common/MsgHandler.h" -#include "Common/Thread.h" #include "VideoBackends/Vulkan/VulkanContext.h" #include "VideoCommon/Constants.h" diff --git a/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp b/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp index 128c24cd1a..965721decf 100644 --- a/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp +++ b/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp @@ -7,19 +7,12 @@ #include <array> #include <type_traits> -#include "Common/Assert.h" -#include "Common/CommonFuncs.h" #include "Common/FileUtil.h" #include "Common/LinearDiskCache.h" #include "Common/MsgHandler.h" -#include "Core/ConfigManager.h" - -#include "VideoBackends/Vulkan/CommandBufferManager.h" -#include "VideoBackends/Vulkan/ShaderCompiler.h" #include "VideoBackends/Vulkan/VKStreamBuffer.h" #include "VideoBackends/Vulkan/VKTexture.h" -#include "VideoBackends/Vulkan/VKVertexFormat.h" #include "VideoBackends/Vulkan/VulkanContext.h" #include "VideoCommon/Constants.h" #include "VideoCommon/VideoCommon.h" diff --git a/Source/Core/VideoBackends/Vulkan/StagingBuffer.cpp b/Source/Core/VideoBackends/Vulkan/StagingBuffer.cpp index 4c61b5f609..8f70ae8235 100644 --- a/Source/Core/VideoBackends/Vulkan/StagingBuffer.cpp +++ b/Source/Core/VideoBackends/Vulkan/StagingBuffer.cpp @@ -3,7 +3,6 @@ #include "VideoBackends/Vulkan/StagingBuffer.h" -#include <algorithm> #include <cstring> #include "Common/Assert.h" diff --git a/Source/Core/VideoBackends/Vulkan/StateTracker.cpp b/Source/Core/VideoBackends/Vulkan/StateTracker.cpp index 5ba70c5845..623b01f3ae 100644 --- a/Source/Core/VideoBackends/Vulkan/StateTracker.cpp +++ b/Source/Core/VideoBackends/Vulkan/StateTracker.cpp @@ -11,7 +11,6 @@ #include "VideoBackends/Vulkan/VKPipeline.h" #include "VideoBackends/Vulkan/VKShader.h" #include "VideoBackends/Vulkan/VKTexture.h" -#include "VideoBackends/Vulkan/VKVertexFormat.h" #include "VideoBackends/Vulkan/VulkanContext.h" #include "VideoCommon/Constants.h" diff --git a/Source/Core/VideoBackends/Vulkan/VKBoundingBox.cpp b/Source/Core/VideoBackends/Vulkan/VKBoundingBox.cpp index af51293500..de3ad0556d 100644 --- a/Source/Core/VideoBackends/Vulkan/VKBoundingBox.cpp +++ b/Source/Core/VideoBackends/Vulkan/VKBoundingBox.cpp @@ -5,8 +5,6 @@ #include <vector> -#include "Common/Logging/Log.h" - #include "VideoBackends/Vulkan/CommandBufferManager.h" #include "VideoBackends/Vulkan/ObjectCache.h" #include "VideoBackends/Vulkan/StagingBuffer.h" diff --git a/Source/Core/VideoBackends/Vulkan/VKPerfQuery.cpp b/Source/Core/VideoBackends/Vulkan/VKPerfQuery.cpp index c6aee79327..9949535d88 100644 --- a/Source/Core/VideoBackends/Vulkan/VKPerfQuery.cpp +++ b/Source/Core/VideoBackends/Vulkan/VKPerfQuery.cpp @@ -3,12 +3,9 @@ #include "VideoBackends/Vulkan/VKPerfQuery.h" -#include <algorithm> #include <cstring> -#include <functional> #include "Common/Assert.h" -#include "Common/Logging/Log.h" #include "Common/MsgHandler.h" #include "VideoBackends/Vulkan/CommandBufferManager.h" diff --git a/Source/Core/VideoBackends/Vulkan/VKPipeline.cpp b/Source/Core/VideoBackends/Vulkan/VKPipeline.cpp index ecd79493b7..6dbd9e5bfc 100644 --- a/Source/Core/VideoBackends/Vulkan/VKPipeline.cpp +++ b/Source/Core/VideoBackends/Vulkan/VKPipeline.cpp @@ -15,8 +15,6 @@ #include "VideoBackends/Vulkan/VKVertexFormat.h" #include "VideoBackends/Vulkan/VulkanContext.h" -#include "VideoCommon/DriverDetails.h" - namespace Vulkan { VKPipeline::VKPipeline(const AbstractPipelineConfig& config, VkPipeline pipeline, diff --git a/Source/Core/VideoBackends/Vulkan/VKShader.cpp b/Source/Core/VideoBackends/Vulkan/VKShader.cpp index 17e13fa795..9132085748 100644 --- a/Source/Core/VideoBackends/Vulkan/VKShader.cpp +++ b/Source/Core/VideoBackends/Vulkan/VKShader.cpp @@ -4,7 +4,6 @@ #include "VideoBackends/Vulkan/VKShader.h" #include "Common/Align.h" -#include "Common/Assert.h" #include "VideoBackends/Vulkan/ObjectCache.h" #include "VideoBackends/Vulkan/ShaderCompiler.h" diff --git a/Source/Core/VideoBackends/Vulkan/VKStreamBuffer.cpp b/Source/Core/VideoBackends/Vulkan/VKStreamBuffer.cpp index a098302e6f..69ce9d6e5e 100644 --- a/Source/Core/VideoBackends/Vulkan/VKStreamBuffer.cpp +++ b/Source/Core/VideoBackends/Vulkan/VKStreamBuffer.cpp @@ -3,10 +3,6 @@ #include "VideoBackends/Vulkan/VKStreamBuffer.h" -#include <algorithm> -#include <cstdint> -#include <functional> - #include "Common/Align.h" #include "Common/Assert.h" #include "Common/MsgHandler.h" diff --git a/Source/Core/VideoBackends/Vulkan/VKSwapChain.cpp b/Source/Core/VideoBackends/Vulkan/VKSwapChain.cpp index 589d9a447b..370e22d15c 100644 --- a/Source/Core/VideoBackends/Vulkan/VKSwapChain.cpp +++ b/Source/Core/VideoBackends/Vulkan/VKSwapChain.cpp @@ -7,7 +7,6 @@ #include <cstdint> #include "Common/Assert.h" -#include "Common/CommonFuncs.h" #include "Common/Contains.h" #include "Common/Logging/Log.h" #include "Common/MsgHandler.h" diff --git a/Source/Core/VideoBackends/Vulkan/VKVertexFormat.cpp b/Source/Core/VideoBackends/Vulkan/VKVertexFormat.cpp index 8fb49f0afd..c607bd1eb1 100644 --- a/Source/Core/VideoBackends/Vulkan/VKVertexFormat.cpp +++ b/Source/Core/VideoBackends/Vulkan/VKVertexFormat.cpp @@ -6,7 +6,6 @@ #include "Common/Assert.h" #include "Common/EnumMap.h" -#include "VideoBackends/Vulkan/CommandBufferManager.h" #include "VideoBackends/Vulkan/ObjectCache.h" #include "VideoCommon/VertexLoaderManager.h" diff --git a/Source/Core/VideoBackends/Vulkan/VKVertexManager.cpp b/Source/Core/VideoBackends/Vulkan/VKVertexManager.cpp index dea5df2ea9..18c5ad560c 100644 --- a/Source/Core/VideoBackends/Vulkan/VKVertexManager.cpp +++ b/Source/Core/VideoBackends/Vulkan/VKVertexManager.cpp @@ -12,20 +12,16 @@ #include "Core/System.h" -#include "VideoBackends/Vulkan/CommandBufferManager.h" #include "VideoBackends/Vulkan/StateTracker.h" #include "VideoBackends/Vulkan/VKGfx.h" #include "VideoBackends/Vulkan/VKStreamBuffer.h" -#include "VideoBackends/Vulkan/VKVertexFormat.h" #include "VideoBackends/Vulkan/VulkanContext.h" #include "VideoCommon/GeometryShaderManager.h" #include "VideoCommon/IndexGenerator.h" #include "VideoCommon/PixelShaderManager.h" #include "VideoCommon/Statistics.h" -#include "VideoCommon/VertexLoaderManager.h" #include "VideoCommon/VertexShaderManager.h" -#include "VideoCommon/VideoConfig.h" namespace Vulkan { diff --git a/Source/Core/VideoBackends/Vulkan/VulkanLoader.cpp b/Source/Core/VideoBackends/Vulkan/VulkanLoader.cpp index 46d8468960..a761a81a3e 100644 --- a/Source/Core/VideoBackends/Vulkan/VulkanLoader.cpp +++ b/Source/Core/VideoBackends/Vulkan/VulkanLoader.cpp @@ -4,21 +4,19 @@ #define VMA_IMPLEMENTATION #include "VideoBackends/Vulkan/VulkanLoader.h" -#include <atomic> -#include <cstdarg> -#include <cstdlib> - #if defined(ANDROID) #include <adrenotools/driver.h> #include <dlfcn.h> #endif -#include "Common/CommonFuncs.h" #include "Common/DynamicLibrary.h" +#if defined(__APPLE__) +#include "Common/FileUtil.h" +#elif defined(ANDROID) && _M_ARM_64 #include "Common/FileUtil.h" -#include "Common/StringUtil.h" #include "VideoCommon/VideoConfig.h" +#endif #define VULKAN_MODULE_ENTRY_POINT(name, required) PFN_##name name; #define VULKAN_INSTANCE_ENTRY_POINT(name, required) PFN_##name name; |
