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/AudioCommon | |
| 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/AudioCommon')
| -rw-r--r-- | Source/Core/AudioCommon/AlsaSoundStream.cpp | 1 | ||||
| -rw-r--r-- | Source/Core/AudioCommon/CubebStream.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/AudioCommon/CubebStream.h | 2 | ||||
| -rw-r--r-- | Source/Core/AudioCommon/OpenALStream.h | 6 | ||||
| -rw-r--r-- | Source/Core/AudioCommon/WaveFile.cpp | 1 |
5 files changed, 5 insertions, 7 deletions
diff --git a/Source/Core/AudioCommon/AlsaSoundStream.cpp b/Source/Core/AudioCommon/AlsaSoundStream.cpp index b9e817331c..5a60f9d45a 100644 --- a/Source/Core/AudioCommon/AlsaSoundStream.cpp +++ b/Source/Core/AudioCommon/AlsaSoundStream.cpp @@ -5,7 +5,6 @@ #include <mutex> -#include "Common/CommonTypes.h" #include "Common/Logging/Log.h" #include "Common/Thread.h" diff --git a/Source/Core/AudioCommon/CubebStream.cpp b/Source/Core/AudioCommon/CubebStream.cpp index 1f7fb5cf45..dd6a35f13e 100644 --- a/Source/Core/AudioCommon/CubebStream.cpp +++ b/Source/Core/AudioCommon/CubebStream.cpp @@ -7,9 +7,7 @@ #include "AudioCommon/CubebUtils.h" #include "Common/CommonTypes.h" -#include "Common/Event.h" #include "Common/Logging/Log.h" -#include "Common/ScopeGuard.h" #include "Core/Config/MainSettings.h" #ifdef _WIN32 diff --git a/Source/Core/AudioCommon/CubebStream.h b/Source/Core/AudioCommon/CubebStream.h index 723abff51a..db5d14b33e 100644 --- a/Source/Core/AudioCommon/CubebStream.h +++ b/Source/Core/AudioCommon/CubebStream.h @@ -7,7 +7,9 @@ #include <vector> #include "AudioCommon/SoundStream.h" +#ifdef _WIN32 #include "Common/WorkQueueThread.h" +#endif #ifdef HAVE_CUBEB #include <cubeb/cubeb.h> diff --git a/Source/Core/AudioCommon/OpenALStream.h b/Source/Core/AudioCommon/OpenALStream.h index 909626b671..1630c03960 100644 --- a/Source/Core/AudioCommon/OpenALStream.h +++ b/Source/Core/AudioCommon/OpenALStream.h @@ -3,15 +3,15 @@ #pragma once -#include <thread> - #include "AudioCommon/SoundStream.h" -#include "Common/Event.h" #ifdef _WIN32 #include <al.h> #include <alc.h> #include <alext.h> +#include <thread> + +#include "Common/Event.h" // OpenAL requires a minimum of two buffers, three or more recommended #define OAL_BUFFERS 3 diff --git a/Source/Core/AudioCommon/WaveFile.cpp b/Source/Core/AudioCommon/WaveFile.cpp index 89cdced4de..042b9d7a7f 100644 --- a/Source/Core/AudioCommon/WaveFile.cpp +++ b/Source/Core/AudioCommon/WaveFile.cpp @@ -16,7 +16,6 @@ #include "Common/StringUtil.h" #include "Common/Swap.h" #include "Core/Config/MainSettings.h" -#include "Core/ConfigManager.h" constexpr size_t WaveFileWriter::BUFFER_SIZE; |
