Remove some unnecessary <algorithm> includes.

This commit is contained in:
Henrik Rydgård 2024-12-18 13:05:12 +01:00
parent 45cf6d423e
commit 4dd3621fa0
28 changed files with 23 additions and 28 deletions

View file

@ -32,7 +32,6 @@
#include <sys/sysctl.h>
#endif
#include <algorithm>
#include <cstdint>
#include <memory.h>
#include <set>

View file

@ -23,7 +23,6 @@
#include <cstdarg>
#include <cstdint>
#include <algorithm>
#include <string>
#include "Common/Data/Encoding/Utf8.h"

View file

@ -4,6 +4,7 @@
#include <cstdlib>
#include <cstdio>
#include <algorithm> // for sort
#include <inttypes.h>
@ -12,7 +13,6 @@
#include <strings.h>
#endif
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>

View file

@ -14,13 +14,14 @@
#include <unistd.h>
#include <errno.h>
#endif
#include <cstring>
#include <string>
#include <set>
#include <algorithm>
#include <cstdio>
#include <sys/stat.h>
#include <ctype.h>
#include <cctype>
#include <algorithm> // remove_if
#include "Common/Data/Encoding/Utf8.h"
#include "Common/StringUtils.h"

View file

@ -1,5 +1,6 @@
#include "ppsspp_config.h"
#include <algorithm>
#include <algorithm> // for std::search
#include <cctype>
#include <cstring>

View file

@ -1,4 +1,3 @@
#include <algorithm>
#include <cstring>
#include <set>

View file

@ -1,6 +1,6 @@
#include <algorithm>
#include <ctype.h>
#include <cctype>
#include <set>
#include <algorithm> // for sort
#include <cstdio>
#include <cstring>

View file

@ -1,5 +1,4 @@
#include "ppsspp_config.h"
#include <algorithm>
#include "Common/GPU/OpenGL/GLCommon.h"
#include "Common/GPU/OpenGL/GLDebugLog.h"

View file

@ -1,7 +1,6 @@
#include <cstdio>
#include <vector>
#include <string>
#include <algorithm>
#include <map>
#include "ppsspp_config.h"

View file

@ -1,5 +1,3 @@
#include <algorithm>
#include "Common/Log.h"
#include "Common/GPU/Vulkan/VulkanContext.h"
#include "Common/GPU/Vulkan/VulkanAlloc.h"

View file

@ -18,7 +18,6 @@
// Additionally, Common/Vulkan/* , including this file, are also licensed
// under the public domain.
#include <algorithm>
#include <set>
#include <mutex>

View file

@ -1,4 +1,3 @@
#include <algorithm>
#include <cstdint>
#include <map>

View file

@ -4,7 +4,6 @@
// Only draws and binds are handled here, resource creation and allocations are handled as normal -
// that's the nice thing with Vulkan.
#include <algorithm>
#include <atomic>
#include <condition_variable>
#include <cstdint>

View file

@ -19,7 +19,6 @@
#if PPSSPP_PLATFORM(WINDOWS) && !PPSSPP_PLATFORM(UWP)
#include <atomic>
#include <algorithm> // min
#include <array>
#include <cstring>
#include <string> // System: To be able to add strings with "+"

View file

@ -1,8 +1,8 @@
#include "Common/Net/HTTPHeaders.h"
#include <algorithm>
#include <stdio.h>
#include <stdlib.h>
#include <cstdio>
#include <cstdlib>
#include <algorithm> // std::transform
#include "Common/Net/Sinks.h"

View file

@ -28,7 +28,6 @@
#define in6addr_any IN6ADDR_ANY_INIT
#endif
#include <algorithm>
#include <functional>
#include <cstdio>

View file

@ -1,6 +1,5 @@
// Ultra-lightweight category profiler with history.
#include <algorithm>
#include <mutex>
#include <vector>
#include <cstring>

View file

@ -1,4 +1,3 @@
#include <algorithm>
#include <cmath>
#include <vector>
#include <stddef.h>

View file

@ -17,6 +17,7 @@
#pragma once
#include <cstdint>
#include <string>
#include <string_view>

View file

@ -17,6 +17,7 @@
#include <algorithm>
#include <unordered_map>
#include "Common/StringUtils.h"
#include "Core/Debugger/WebSocket/InputSubscriber.h"
#include "Core/Debugger/WebSocket/WebSocketUtils.h"

View file

@ -19,7 +19,7 @@
#include <vector>
#include <map>
#include <algorithm>
#include <algorithm> // std::erase/remove
#include "Common/CommonTypes.h"
#include "Core/CoreTiming.h"

View file

@ -15,6 +15,7 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include <algorithm> // std::remove
#include <cstdlib>
#include <set>
#include <thread>

View file

@ -18,6 +18,8 @@
#pragma once
#include <string>
#include <cstdint>
#include "Common/CommonTypes.h"
#include "Core/MIPS/MIPS.h"

View file

@ -1,6 +1,5 @@
#define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <mutex>

View file

@ -15,7 +15,7 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include <algorithm>
#include <algorithm> // std::remove
#include "ext/xxhash.h"

View file

@ -25,6 +25,7 @@
// All credit goes to him and the official miniupnp project! http://miniupnp.free.fr/
#include <algorithm> // find_if
#include <cstring>
#include <string>
#include <thread>

View file

@ -1,5 +1,7 @@
#include "ppsspp_config.h"
#include <algorithm> // std::remove
#include "Common/Profiler/Profiler.h"
#include "Common/GraphicsContext.h"

View file

@ -1,8 +1,8 @@
#include "Common/CommonWindows.h"
#include <vector>
#include <algorithm>
#include "Windows/W32Util/DialogManager.h"
#include "Common/CommonWindows.h"
#include "Windows/W32Util/DialogManager.h"
Dialog::Dialog(LPCSTR res, HINSTANCE _hInstance, HWND _hParent)
{