Core: Remove unnecessary includes

Also moves a cpp file's related header file to the top of the inclusions if it isn't already there.
This commit is contained in:
Lioncash
2017-06-15 18:52:22 -04:00
parent b003108b8b
commit dd4203bec8
97 changed files with 148 additions and 138 deletions
+2 -2
View File
@@ -19,6 +19,8 @@
// copy, etc
// -------------------------------------------------------------------------------------------------------------
#include "Core/ActionReplay.h"
#include <algorithm>
#include <atomic>
#include <cstdarg>
@@ -36,9 +38,7 @@
#include "Common/StringUtil.h"
#include "Core/ARDecrypt.h"
#include "Core/ActionReplay.h"
#include "Core/ConfigManager.h"
#include "Core/Core.h"
#include "Core/PowerPC/PowerPC.h"
namespace ActionReplay
-3
View File
@@ -26,8 +26,6 @@
#include "Core/Boot/DolReader.h"
#include "Core/Boot/ElfReader.h"
#include "Core/ConfigManager.h"
#include "Core/Core.h"
#include "Core/Debugger/Debugger_SymbolMap.h"
#include "Core/FifoPlayer/FifoPlayer.h"
#include "Core/HLE/HLE.h"
#include "Core/HW/DVD/DVDInterface.h"
@@ -40,7 +38,6 @@
#include "Core/PowerPC/PPCAnalyst.h"
#include "Core/PowerPC/PPCSymbolDB.h"
#include "Core/PowerPC/PowerPC.h"
#include "Core/PowerPC/SignatureDB/SignatureDB.h"
#include "DiscIO/Enums.h"
#include "DiscIO/NANDContentLoader.h"
-1
View File
@@ -25,7 +25,6 @@
#include "Core/IOS/ES/ES.h"
#include "Core/IOS/ES/Formats.h"
#include "Core/IOS/IOS.h"
#include "Core/PatchEngine.h"
#include "Core/PowerPC/PowerPC.h"
#include "DiscIO/Enums.h"
-1
View File
@@ -20,7 +20,6 @@
#include "Core/IOS/ES/Formats.h"
#include "Core/IOS/FS/FileIO.h"
#include "Core/IOS/IOS.h"
#include "Core/PatchEngine.h"
#include "DiscIO/NANDContentLoader.h"
+2 -2
View File
@@ -2,10 +2,10 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include <tuple>
#include "Core/Config/Config.h"
#include <tuple>
namespace Config
{
bool ConfigLocation::operator==(const ConfigLocation& other) const
+2 -1
View File
@@ -2,10 +2,11 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "Core/Config/GraphicsSettings.h"
#include <string>
#include "Core/Config/Config.h"
#include "Core/Config/GraphicsSettings.h"
#include "VideoCommon/VideoConfig.h"
namespace Config
@@ -2,13 +2,14 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "Core/ConfigLoaders/BaseConfigLoader.h"
#include <cstring>
#include <list>
#include <map>
#include <memory>
#include <string>
#include "Common/CommonPaths.h"
#include "Common/CommonTypes.h"
#include "Common/Config/Config.h"
#include "Common/FileUtil.h"
@@ -16,7 +17,6 @@
#include "Common/Logging/Log.h"
#include "Core/Config/Config.h"
#include "Core/ConfigLoaders/BaseConfigLoader.h"
#include "Core/ConfigLoaders/IsSettingSaveable.h"
namespace ConfigLoaders
@@ -2,6 +2,8 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "Core/ConfigLoaders/GameConfigLoader.h"
#include <algorithm>
#include <array>
#include <list>
@@ -22,7 +24,6 @@
#include "Core/Config/Config.h"
#include "Core/Config/GraphicsSettings.h"
#include "Core/ConfigLoaders/GameConfigLoader.h"
#include "Core/ConfigLoaders/IsSettingSaveable.h"
namespace ConfigLoaders
@@ -6,6 +6,7 @@
#include <cstring>
#include <memory>
#include <string>
#include "Common/CommonTypes.h"
@@ -2,12 +2,13 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "Core/ConfigLoaders/IsSettingSaveable.h"
#include <algorithm>
#include <vector>
#include "Core/Config/Config.h"
#include "Core/Config/GraphicsSettings.h"
#include "Core/ConfigLoaders/IsSettingSaveable.h"
namespace ConfigLoaders
{
@@ -2,18 +2,17 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "Core/ConfigLoaders/MovieConfigLoader.h"
#include <cstring>
#include <memory>
#include <string>
#include "Common/CommonFuncs.h"
#include "Common/CommonPaths.h"
#include "Common/CommonTypes.h"
#include "Common/Config/Config.h"
#include "Common/FileUtil.h"
#include "Common/IniFile.h"
#include "Core/ConfigLoaders/MovieConfigLoader.h"
#include "Core/Movie.h"
namespace ConfigLoaders
@@ -2,15 +2,11 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "Core/ConfigLoaders/NetPlayConfigLoader.h"
#include <memory>
#include "Common/CommonPaths.h"
#include "Common/Config/Config.h"
#include "Common/FileUtil.h"
#include "Common/IniFile.h"
#include "Common/Logging/Log.h"
#include "Core/ConfigLoaders/NetPlayConfigLoader.h"
#include "Core/NetPlayProto.h"
namespace ConfigLoaders
+2 -2
View File
@@ -2,6 +2,8 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "Core/ConfigManager.h"
#include <cinttypes>
#include <climits>
#include <memory>
@@ -24,8 +26,6 @@
#include "Core/Analytics.h"
#include "Core/Boot/Boot.h"
#include "Core/Config/Config.h"
#include "Core/ConfigManager.h"
#include "Core/Core.h"
#include "Core/FifoPlayer/FifoDataFile.h"
#include "Core/HLE/HLE.h"
+2 -1
View File
@@ -2,6 +2,8 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "Core/CoreTiming.h"
#include <algorithm>
#include <cinttypes>
#include <mutex>
@@ -18,7 +20,6 @@
#include "Core/ConfigManager.h"
#include "Core/Core.h"
#include "Core/CoreTiming.h"
#include "Core/PowerPC/PowerPC.h"
#include "VideoCommon/Fifo.h"
+2 -2
View File
@@ -2,6 +2,8 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "Core/DSP/DSPCaptureLogger.h"
#include <cstring>
#include <memory>
#include <string>
@@ -10,8 +12,6 @@
#include "Common/File.h"
#include "Common/PcapFile.h"
#include "Core/DSP/DSPCaptureLogger.h"
namespace DSP
{
// Definition of the packet structures stored in PCAP capture files.
+2 -1
View File
@@ -2,6 +2,8 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "Core/DSP/DSPCodeUtil.h"
#include <algorithm>
#include <iostream>
#include <string>
@@ -14,7 +16,6 @@
#include "Common/Swap.h"
#include "Core/DSP/DSPAssembler.h"
#include "Core/DSP/DSPCodeUtil.h"
#include "Core/DSP/DSPDisassembler.h"
namespace DSP
+2 -2
View File
@@ -2,11 +2,11 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "Core/DSPEmulator.h"
#include <memory>
#include "Core/DSPEmulator.h"
#include "Core/HW/DSPHLE/DSPHLE.h"
#include "Core/HW/DSPHLE/UCodes/UCodes.h"
#include "Core/HW/DSPLLE/DSPLLE.h"
std::unique_ptr<DSPEmulator> CreateDSPEmulator(bool hle)
@@ -2,6 +2,8 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "Core/Debugger/Debugger_SymbolMap.h"
#include <cstdio>
#include <functional>
#include <string>
@@ -10,7 +12,6 @@
#include "Common/StringUtil.h"
#include "Core/Core.h"
#include "Core/Debugger/Debugger_SymbolMap.h"
#include "Core/HW/Memmap.h"
#include "Core/PowerPC/PPCAnalyst.h"
#include "Core/PowerPC/PPCSymbolDB.h"
+2 -2
View File
@@ -2,14 +2,14 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "Core/Debugger/Dump.h"
#include <cstdio>
#include <string>
#include "Common/CommonTypes.h"
#include "Common/File.h"
#include "Core/Debugger/Dump.h"
CDump::CDump(const std::string& filename) : m_pData(nullptr)
{
File::IOFile pStream(filename, "rb");
@@ -12,7 +12,6 @@
#include "Core/Core.h"
#include "Core/HW/DSP.h"
#include "Core/PowerPC/JitCommon/JitBase.h"
#include "Core/PowerPC/PPCSymbolDB.h"
#include "Core/PowerPC/PowerPC.h"

Some files were not shown because too many files have changed in this diff Show More