More unused stuff removal (#49)

* More unused stuff removal

delete:
- giant 'metaheaders' (JA2 All.h, Laptop All.h, etc), preferring to add #includes directly where needed
- unused ExceptionHandling and DbMan translation units
- unused WizShare.h, Bitmap.h, trle.h, video_private.h headers

* remove mentions from vc proj files too

* remove preprocessor conditionals for unused definitions

find . -iname '*.h' -o -iname '*.cpp' -exec unifdef.exe -m -UPRECOMPILED_HEADERS -UJA2_PRECOMPILED_HEADERS -UWIZ8_PRECOMPILED_HEADERS -UPRECOMPILEDHEADERS {} ';'

then manually fixed a couple files the tool errored out on

* yes, the comments too

as title
This commit is contained in:
majcosta
2023-01-03 15:51:48 +02:00
committed by GitHub
parent 6024ed62b0
commit 24425a82b1
563 changed files with 45 additions and 6564 deletions
-99
View File
@@ -1,99 +0,0 @@
#ifndef __AI_ALL_H
#define __AI_ALL_H
#pragma message("GENERATED PCH FOR TACTICAL AI PROJECT.")
#include "AIList.h"
#include "Overhead.h"
#include "debug.h"
#include "AIInternals.h"
#include "wcheck.h"
#include "sgp.h"
#include "ai.h"
#include "Isometric Utils.h"
#include "math.h"
#include "Event Pump.h"
#include "Overhead Types.h"
#include "sys globals.h"
#include "opplist.h"
#include "animation control.h"
#include "font control.h"
#include "interface.h"
#include "screenids.h"
#include "worldman.h"
#include "pathai.h"
#include "points.h"
#include "weapons.h"
#include "items.h"
#include "Handle Items.h"
#include "animation data.h"
#include "los.h"
#include "message.h"
#include "TeamTurns.h"
#include "NPC.h"
#include "Dialogue Control.h"
#include "Soldier Profile.h"
#include "strategicmap.h"
#include "Tactical Save.h"
#include "Soldier Create.h"
#include "Explosion Control.h"
#include "Interactive Tiles.h"
#include "interface dialogue.h"
#include "Vehicles.h"
#include "renderworld.h"
#include "assignments.h"
#include "Soldier Functions.h"
#include "GameSettings.h"
#include "Buildings.h"
#include "Physics.h"
#include "Bullets.h"
#include "Spread Burst.h"
#include "SkillCheck.h"
#include "types.h"
#include "soldier control.h"
#include "Rotting Corpses.h"
#include "soldier add.h"
#include "Scheduling.h"
#include "Structure Wrap.h"
#include "Keys.h"
#include "Render Fun.h"
#include "Boxing.h"
#include <stdlib.h>
#include "World Items.h"
#include "Map Edgepoints.h"
#include "Text.h"
#include "video.h"
#include "Smell.h"
#include "mapscreen.h"
#include "strategic.h"
#include "Strategic Pathing.h"
#include "Quests.h"
#include "Game Clock.h"
#include "FileMan.h"
#include "Random.h"
#include "QuestDebug.h"
#include "soldier macros.h"
#include "Strategic Town Loyalty.h"
#include "Timer Control.h"
#include "Soldier Tile.h"
#include "meanwhile.h"
#include "Campaign Types.h"
#ifdef JA2TESTVERSION
#include "Quest Debug System.h"
#include "QuestText.h"
#endif
#include "stdarg.h"
#include <stdio.h>
#include "Soldier Profile Type.h"
#include "finances.h"
#include "Civ Quotes.h"
#include "Arms Dealer Init.h"
#include "Interface Panels.h"
#include "Soldier Ani.h"
#include "Queen Command.h"
#include "Lighting.h"
#include "environment.h"
#include "Sound Control.h"
#endif
-4
View File
@@ -10,9 +10,6 @@
*
*/
#ifdef PRECOMPILEDHEADERS
#include "AI All.h"
#else
#include "AIList.h"
#include "Overhead.h"
#include "debug.h"
@@ -21,7 +18,6 @@
#include "opplist.h"
#include "Interface.h"
#include "Tactical Save.h"
#endif
#define AI_LIST_SIZE TOTAL_SOLDIERS
-6
View File
@@ -1,8 +1,3 @@
#ifdef PRECOMPILEDHEADERS
#include "AI All.h"
#include "sound control.h"
#include "Debug Control.h"
#else
#include "sgp.h"
#include "ai.h"
#include "Isometric Utils.h"
@@ -54,7 +49,6 @@
#include "Soldier Functions.h" // added by SANDRO
#include "Text.h" // sevenfm
#include "english.h" // sevenfm: for ESC key
#endif
#include "connect.h"
// needed to use the modularized tactical AI:
-4
View File
@@ -1,6 +1,3 @@
#ifdef PRECOMPILEDHEADERS
#include "AI All.h"
#else
#include "ai.h"
#include "Weapons.h"
#include "opplist.h"
@@ -28,7 +25,6 @@
#include "Rotting Corpses.h" // sevenfm
#include "wcheck.h" // sevenfm
#include "SmokeEffects.h" // sevenfm
#endif
#include "GameInitOptionsScreen.h"
-4
View File
@@ -1,6 +1,3 @@
#ifdef PRECOMPILEDHEADERS
#include "AI All.h"
#else
#include "ai.h"
#include "Weapons.h"
#include "opplist.h"
@@ -34,7 +31,6 @@
#include "Render Fun.h"
#include "worldman.h"
#include "WCheck.h"
#endif
// anv: for enemy taunts
#include "Civ Quotes.h"
-4
View File
@@ -1,6 +1,3 @@
#ifdef PRECOMPILEDHEADERS
#include "AI All.h"
#else
#include "types.h"
//#include "soldier control.h"
#include "ai.h"
@@ -9,7 +6,6 @@
#include "Items.h"
#include "Rotting Corpses.h"
#include "soldier add.h"
#endif
//forward declarations of common classes to eliminate includes
class OBJECTTYPE;
-4
View File
@@ -1,6 +1,3 @@
#ifdef PRECOMPILEDHEADERS
#include "AI All.h"
#else
#include "ai.h"
#include "AIInternals.h"
#include "Isometric utils.h"
@@ -32,7 +29,6 @@
#include "rotting corpses.h"
#include "GameSettings.h"
#include "Dialogue Control.h"
#endif
#include "connect.h"
#include "Text.h"
#include "Exit Grids.h" // added by Flugente
-4
View File
@@ -1,6 +1,3 @@
#ifdef PRECOMPILEDHEADERS
#include "AI All.h"
#else
#include <stdlib.h>
#include "Isometric Utils.h"
#include "ai.h"
@@ -30,7 +27,6 @@
#include "GameSettings.h"
#include "Soldier Profile.h"
#include "rotting corpses.h" // sevenfm
#endif
////////////////////////////////////////////////////////////////////////////////////////////////////////
-4
View File
@@ -1,6 +1,3 @@
#ifdef PRECOMPILEDHEADERS
#include "AI All.h"
#else
#include "ai.h"
#include "AIInternals.h"
#include "opplist.h"
@@ -10,7 +7,6 @@
#include "Quests.h"
#include "Render Fun.h"
#include "Soldier macros.h"
#endif
extern SECTOR_EXT_DATA SectorExternalData[256][4];
-4
View File
@@ -1,6 +1,3 @@
#ifdef PRECOMPILEDHEADERS
#include "AI All.h"
#else
#include "types.h"
#include "Soldier Functions.h"
@@ -17,7 +14,6 @@
// added by SANDRO
#include "Soldier Profile.h"
#include "GameSettings.h"
#endif
//forward declarations of common classes to eliminate includes
class OBJECTTYPE;
-4
View File
@@ -1,6 +1,3 @@
#ifdef PRECOMPILEDHEADERS
#include "AI All.h"
#else
#include "ai.h"
#include "AIInternals.h"
#include "Isometric Utils.h"
@@ -17,7 +14,6 @@
#include "Soldier macros.h"
#include "Render Fun.h"
#include "Soldier Functions.h" // added by Flugente
#endif
#include "connect.h"
//forward declarations of common classes to eliminate includes
class OBJECTTYPE;
-6
View File
@@ -1,8 +1,3 @@
#ifdef PRECOMPILEDHEADERS
#include "AI All.h"
#include "interface items.h"
#else
#include "types.h"
#include "wcheck.h"
#include "overhead.h"
@@ -48,7 +43,6 @@
#include "GameSettings.h" // added by SANDRO
#include "Soldier Profile.h"
#include "GameVersion.h"
#endif
#include "Soldier Profile.h"
#include "BriefingRoom_Data.h"
-4
View File
@@ -1,6 +1,3 @@
#ifdef PRECOMPILEDHEADERS
#include "AI All.h"
#else
#include "AIInternals.h"
#include "ai.h"
#include "pathai.h"
@@ -10,7 +7,6 @@
#include "Map Screen Interface Map.h"
#include "Soldier Profile.h"
#include "Quests.h"
#endif
#include "Queen Command.h"
-4
View File
@@ -1,13 +1,9 @@
#ifdef PRECOMPILEDHEADERS
#include "AI All.h"
#else
#include "FileMan.h"
#include "QuestDebug.h"
#include "stdarg.h"
#include "stdio.h"
#include "Debug.h"
#include "Message.h"
#endif
#define QUEST_DEBUG_FILE "QuestDebug.txt"
-4
View File
@@ -1,6 +1,3 @@
#ifdef PRECOMPILEDHEADERS
#include "AI All.h"
#else
#include "ai.h"
#include "AIInternals.h"
#include "Isometric utils.h"
@@ -15,7 +12,6 @@
#include "Render Fun.h"
#include "Quests.h"
#include "GameSettings.h"
#endif
// needed to use the modularized tactical AI:
#include "ModularizedTacticalAI/include/Plan.h"
#include "ModularizedTacticalAI/include/PlanFactoryLibrary.h"
-4
View File
@@ -338,10 +338,6 @@
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath=".\AI All.h"
>
</File>
<File
RelativePath=".\ai.h"
>
-4
View File
@@ -338,10 +338,6 @@
<Filter
Name="Header Files"
>
<File
RelativePath="AI All.h"
>
</File>
<File
RelativePath="ai.h"
>
-1
View File
@@ -23,7 +23,6 @@
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClInclude Include="AI All.h" />
<ClInclude Include="ai.h" />
<ClInclude Include="AIInternals.h" />
<ClInclude Include="AIList.h" />
@@ -9,7 +9,6 @@
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="AI All.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="ai.h">
-1
View File
@@ -23,7 +23,6 @@
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClInclude Include="AI All.h" />
<ClInclude Include="ai.h" />
<ClInclude Include="AIInternals.h" />
<ClInclude Include="AIList.h" />
@@ -9,7 +9,6 @@
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="AI All.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="ai.h">
-1
View File
@@ -23,7 +23,6 @@
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClInclude Include="AI All.h" />
<ClInclude Include="ai.h" />
<ClInclude Include="AIInternals.h" />
<ClInclude Include="AIList.h" />
-1
View File
@@ -43,7 +43,6 @@
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClInclude Include="AI All.h" />
<ClInclude Include="ai.h" />
<ClInclude Include="AIInternals.h" />
<ClInclude Include="AIList.h" />
-4
View File
@@ -1,6 +1,3 @@
#ifdef PRECOMPILEDHEADERS
#include "AI All.h"
#else
#include "ai.h"
#include "AIInternals.h"
#include "Isometric utils.h"
@@ -32,7 +29,6 @@
#include "rotting corpses.h"
#include "GameSettings.h"
#include "Dialogue Control.h"
#endif
#include "connect.h"
#include "Text.h"