Skip to content

Commit

Permalink
Merge pull request #5580 from lioncash/header
Browse files Browse the repository at this point in the history
Core: Remove unnecessary header inclusions
  • Loading branch information
lioncash committed Jun 15, 2017
2 parents 8f460a1 + dd4203b commit 220ce42
Show file tree
Hide file tree
Showing 101 changed files with 177 additions and 139 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/ActionReplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
// copy, etc
// -------------------------------------------------------------------------------------------------------------

#include "Core/ActionReplay.h"

#include <algorithm>
#include <atomic>
#include <cstdarg>
Expand All @@ -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
Expand Down
3 changes: 0 additions & 3 deletions Source/Core/Core/Boot/Boot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
1 change: 0 additions & 1 deletion Source/Core/Core/Boot/Boot_BS2Emu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion Source/Core/Core/Boot/Boot_WiiWAD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Core/Config/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion Source/Core/Core/Config/GraphicsSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Core/ConfigLoaders/BaseConfigLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
// 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"
#include "Common/IniFile.h"
#include "Common/Logging/Log.h"

#include "Core/Config/Config.h"
#include "Core/ConfigLoaders/BaseConfigLoader.h"
#include "Core/ConfigLoaders/IsSettingSaveable.h"

namespace ConfigLoaders
Expand Down
3 changes: 2 additions & 1 deletion Source/Core/Core/ConfigLoaders/GameConfigLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions Source/Core/Core/ConfigLoaders/GameConfigLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <cstring>
#include <memory>
#include <string>

#include "Common/CommonTypes.h"

Expand Down
3 changes: 2 additions & 1 deletion Source/Core/Core/ConfigLoaders/IsSettingSaveable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
5 changes: 2 additions & 3 deletions Source/Core/Core/ConfigLoaders/MovieConfigLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 2 additions & 6 deletions Source/Core/Core/ConfigLoaders/NetPlayConfigLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Core/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.

#include "Core/ConfigManager.h"

#include <cinttypes>
#include <climits>
#include <memory>
Expand All @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions Source/Core/Core/Core.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,9 @@
<ClInclude Include="HW\SystemTimers.h" />
<ClInclude Include="HW\VideoInterface.h" />
<ClInclude Include="HW\Wiimote.h" />
<ClInclude Include="HW\WiimoteCommon\WiimoteConstants.h" />
<ClInclude Include="HW\WiimoteCommon\WiimoteHid.h" />
<ClInclude Include="HW\WiimoteCommon\WiimoteReport.h" />
<ClInclude Include="HW\WiimoteEmu\Attachment\Attachment.h" />
<ClInclude Include="HW\WiimoteEmu\Attachment\Classic.h" />
<ClInclude Include="HW\WiimoteEmu\Attachment\Drums.h" />
Expand Down
12 changes: 12 additions & 0 deletions Source/Core/Core/Core.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@
<Filter Include="PowerPC\SignatureDB">
<UniqueIdentifier>{f0b52c84-49f4-470a-b037-edeea5634b9e}</UniqueIdentifier>
</Filter>
<Filter Include="HW %28Flipper/Hollywood%29\WiimoteCommon">
<UniqueIdentifier>{ee6645da-3ad9-4fe7-809f-e4646d0b0ca5}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="BootManager.cpp" />
Expand Down Expand Up @@ -1526,6 +1529,15 @@
<ClInclude Include="IOS\Network\NCD\WiiNetConfig.h">
<Filter>IOS\Network\NCD</Filter>
</ClInclude>
<ClInclude Include="HW\WiimoteCommon\WiimoteConstants.h">
<Filter>HW %28Flipper/Hollywood%29\WiimoteCommon</Filter>
</ClInclude>
<ClInclude Include="HW\WiimoteCommon\WiimoteHid.h">
<Filter>HW %28Flipper/Hollywood%29\WiimoteCommon</Filter>
</ClInclude>
<ClInclude Include="HW\WiimoteCommon\WiimoteReport.h">
<Filter>HW %28Flipper/Hollywood%29\WiimoteCommon</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Text Include="CMakeLists.txt" />
Expand Down
3 changes: 2 additions & 1 deletion Source/Core/Core/CoreTiming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.

#include "Core/CoreTiming.h"

#include <algorithm>
#include <cinttypes>
#include <mutex>
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Core/DSP/DSPCaptureLogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion Source/Core/Core/DSP/DSPCodeUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Core/DSPEmulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion Source/Core/Core/Debugger/Debugger_SymbolMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Core/Debugger/Dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
1 change: 0 additions & 1 deletion Source/Core/Core/Debugger/PPCDebugInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Core/FifoPlayer/FifoDataFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.

#include "Core/FifoPlayer/FifoDataFile.h"

#include <algorithm>
#include <cstring>
#include <memory>
Expand All @@ -10,8 +12,6 @@

#include "Common/File.h"

#include "Core/FifoPlayer/FifoDataFile.h"

enum
{
FILE_ID = 0x0d01f1f0,
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Core/FifoPlayer/FifoPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.

#include "Core/FifoPlayer/FifoPlayer.h"

#include <algorithm>
#include <mutex>

#include "Core/FifoPlayer/FifoPlayer.h"

#include "Common/Assert.h"
#include "Common/CommonTypes.h"
#include "Common/MsgHandler.h"
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Core/FifoPlayer/FifoRecordAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.

#include "Core/FifoPlayer/FifoRecordAnalyzer.h"

#include <algorithm>
#include <cstring>

#include "Core/FifoPlayer/FifoRecordAnalyzer.h"

#include "Core/FifoPlayer/FifoAnalyzer.h"
#include "Core/FifoPlayer/FifoRecorder.h"
#include "Core/HW/Memmap.h"
Expand Down

0 comments on commit 220ce42

Please sign in to comment.