mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Remove some useless includes found by cppclean
This of course was tested and shouldn't break anything
This commit is contained in:
		| @@ -1,6 +1,5 @@ | ||||
| #include "StdInc.h" | ||||
| #include "VCAI.h" | ||||
| #include "Goals.h" | ||||
| #include "Fuzzy.h" | ||||
|  | ||||
| #include "../../lib/UnlockGuard.h" | ||||
|   | ||||
| @@ -22,7 +22,6 @@ | ||||
| #include "../lib/CCreatureHandler.h" | ||||
| #include "../lib/spells/CSpellHandler.h" | ||||
| #include "CMusicHandler.h" | ||||
| #include "CVideoHandler.h" | ||||
| #include "CDefHandler.h" | ||||
| #include "../lib/CGeneralTextHandler.h" | ||||
| #include "Graphics.h" | ||||
|   | ||||
| @@ -15,7 +15,6 @@ | ||||
| #include "CGameInfo.h" | ||||
| #include "gui/SDL_Extensions.h" | ||||
| #include "../lib/CGeneralTextHandler.h" | ||||
| #include "Graphics.h" | ||||
| #include "windows/GUIClasses.h" | ||||
| #include "../lib/CConfigHandler.h" | ||||
| #include "CBitmapHandler.h" | ||||
|   | ||||
| @@ -44,7 +44,6 @@ | ||||
| #include "widgets/TextControls.h" | ||||
| #include "windows/InfoWindows.h" | ||||
| #include "../lib/mapping/CMapService.h" | ||||
| #include "../lib/mapping/CMap.h" | ||||
| #include "../lib/CRandomGenerator.h" | ||||
| #include "../lib/CondSh.h" | ||||
|  | ||||
|   | ||||
| @@ -30,7 +30,6 @@ | ||||
| #include "../lib/JsonNode.h" | ||||
| #include "mapHandler.h" | ||||
| #include "../lib/CConfigHandler.h" | ||||
| #include "Client.h" | ||||
| #include "CPreGame.h" | ||||
| #include "battle/CBattleInterface.h" | ||||
| #include "../lib/CThreadHelper.h" | ||||
|   | ||||
| @@ -19,7 +19,6 @@ | ||||
| #include "../lib/CGameState.h" | ||||
| #include "../lib/JsonNode.h" | ||||
| #include "../lib/vcmi_endian.h" | ||||
| #include "../lib/GameConstants.h" | ||||
| #include "../lib/CStopWatch.h" | ||||
| #include "../lib/mapObjects/CObjectClassesHandler.h" | ||||
| #include "../lib/mapObjects/CObjectHandler.h" | ||||
|   | ||||
| @@ -8,7 +8,6 @@ | ||||
| #include "../../lib/filesystem/CBinaryReader.h" | ||||
| #include "../../lib/filesystem/CMemoryStream.h" | ||||
|  | ||||
| #include "../gui/SDL_Extensions.h" | ||||
| #include "../gui/SDL_Pixels.h" | ||||
|  | ||||
| /* | ||||
|   | ||||
| @@ -5,7 +5,6 @@ | ||||
|  | ||||
| #include "../gui/CAnimation.h" | ||||
| #include "../gui/SDL_Pixels.h" | ||||
| #include "../gui/SDL_Extensions.h" | ||||
| #include "../gui/CGuiHandler.h" | ||||
| #include "../gui/CCursorHandler.h" | ||||
|  | ||||
|   | ||||
| @@ -15,7 +15,6 @@ | ||||
| #include "VCMI_Lib.h" | ||||
| #include "mapObjects/CObjectHandler.h" | ||||
| #include "CHeroHandler.h" | ||||
| #include "CCreatureHandler.h" | ||||
| #include "spells/CSpellHandler.h" | ||||
| #include "CTownHandler.h" | ||||
| #include "NetPacks.h" | ||||
|   | ||||
| @@ -18,7 +18,6 @@ | ||||
| #include "spells/CSpellHandler.h" | ||||
| #include "mapObjects/MapObjects.h" | ||||
| #include "NetPacksBase.h" | ||||
| #include "GameConstants.h" | ||||
| #include "StringConstants.h" | ||||
| #include "CRandomGenerator.h" | ||||
|  | ||||
|   | ||||
| @@ -10,9 +10,7 @@ | ||||
| #include "spells/CSpellHandler.h" | ||||
| #include "CHeroHandler.h" | ||||
| #include "mapObjects/CObjectHandler.h" | ||||
| #include "CCreatureHandler.h" | ||||
| #include "CModHandler.h" | ||||
| #include "VCMI_Lib.h" | ||||
| #include "Connection.h" | ||||
| #include "mapping/CMap.h" | ||||
| #include "mapping/CMapService.h" | ||||
| @@ -27,9 +25,6 @@ | ||||
| #include "rmg/CMapGenerator.h" | ||||
| #include "CStopWatch.h" | ||||
| #include "mapping/CMapEditManager.h" | ||||
| #include "CPathfinder.h" | ||||
|  | ||||
| class CGObjectInstance; | ||||
|  | ||||
| #ifdef min | ||||
| #undef min | ||||
|   | ||||
| @@ -1,9 +1,7 @@ | ||||
| #include "StdInc.h" | ||||
| #include "CModHandler.h" | ||||
| #include "mapObjects/CObjectClassesHandler.h" | ||||
| #include "JsonNode.h" | ||||
| #include "filesystem/FileStream.h" | ||||
| #include "filesystem/Filesystem.h" | ||||
| #include "filesystem/AdapterLoaders.h" | ||||
| #include "filesystem/CFilesystemLoader.h" | ||||
|  | ||||
|   | ||||
| @@ -13,7 +13,6 @@ | ||||
| #include "filesystem/Filesystem.h" | ||||
| #include "mapObjects/CObjectClassesHandler.h" | ||||
| #include "mapObjects/CObjectHandler.h" | ||||
| #include "BattleHex.h" | ||||
|  | ||||
| /* | ||||
|  * CTownHandler.cpp, part of VCMI engine | ||||
|   | ||||
| @@ -19,7 +19,6 @@ | ||||
| #include "CGeneralTextHandler.h" | ||||
| #include "BattleState.h" | ||||
| #include "CArtHandler.h" | ||||
| #include "GameConstants.h" | ||||
|  | ||||
| #define FOREACH_PARENT(pname) 	TNodes lparents; getParents(lparents); for(CBonusSystemNode *pname : lparents) | ||||
| #define FOREACH_CPARENT(pname) 	TCNodes lparents; getParents(lparents); for(const CBonusSystemNode *pname : lparents) | ||||
|   | ||||
| @@ -2,8 +2,6 @@ | ||||
| #include "CMapInfo.h" | ||||
|  | ||||
| #include "../StartInfo.h" | ||||
| #include "CMap.h" | ||||
| #include "CCampaignHandler.h" | ||||
| #include "../GameConstants.h" | ||||
| #include "CMapService.h" | ||||
|  | ||||
|   | ||||
| @@ -7,17 +7,10 @@ | ||||
| #include "../BattleState.h" | ||||
| #include "../CGameState.h" | ||||
| #include "../mapping/CMap.h" | ||||
| #include "../CModHandler.h" | ||||
| #include "../mapObjects/CObjectHandler.h" | ||||
| #include "../CCreatureHandler.h" | ||||
| #include "../VCMI_Lib.h" | ||||
| #include "../CArtHandler.h" | ||||
| #include "../CHeroHandler.h" | ||||
| #include "../spells/CSpellHandler.h" | ||||
| #include "../CTownHandler.h" | ||||
| #include "../mapping/CCampaignHandler.h" | ||||
| #include "../NetPacks.h" | ||||
| #include "../mapObjects/CObjectClassesHandler.h" | ||||
|  | ||||
| // For reference: peak memory usage by gcc during compilation of register type templates | ||||
| // registerTypesMapObjects:  1.9 Gb | ||||
|   | ||||
| @@ -12,7 +12,6 @@ | ||||
| #include "StdInc.h" | ||||
| #include "CMapGenOptions.h" | ||||
|  | ||||
| #include "../GameConstants.h" | ||||
| #include "../mapping/CMap.h" | ||||
| #include "CRmgTemplateStorage.h" | ||||
| #include "CRmgTemplate.h" | ||||
|   | ||||
| @@ -8,8 +8,6 @@ | ||||
| #include "../CTownHandler.h" | ||||
| #include "../StringConstants.h" | ||||
| #include "../filesystem/Filesystem.h" | ||||
| #include "CRmgTemplate.h" | ||||
| #include "CRmgTemplateZone.h" | ||||
| #include "CZonePlacer.h" | ||||
| #include "../mapObjects/CObjectClassesHandler.h" | ||||
|  | ||||
|   | ||||
| @@ -12,8 +12,6 @@ | ||||
| #include "StdInc.h" | ||||
| #include "CRmgTemplateStorage.h" | ||||
|  | ||||
| #include "CRmgTemplate.h" | ||||
| #include "CRmgTemplateZone.h" | ||||
| #include "../filesystem/Filesystem.h" | ||||
| #include "../JsonNode.h" | ||||
| #include "../mapping/CMap.h" | ||||
|   | ||||
| @@ -19,7 +19,6 @@ | ||||
|  | ||||
| #include "../JsonNode.h" | ||||
|  | ||||
| #include "../BattleHex.h" | ||||
| #include "../CModHandler.h" | ||||
| #include "../StringConstants.h" | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user