Skip to content

Commit

Permalink
Removed all superfluous #include's
Browse files Browse the repository at this point in the history
Excluded one .cpp file from compilation
  • Loading branch information
alexey-lysiuk committed Apr 23, 2018
1 parent 2aee68d commit fb9c8c1
Show file tree
Hide file tree
Showing 357 changed files with 3 additions and 1,729 deletions.
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Expand Up @@ -919,7 +919,6 @@ set (PCH_SOURCES
i_time.cpp
info.cpp
keysections.cpp
lumpconfigfile.cpp
m_alloc.cpp
m_argv.cpp
m_bbox.cpp
Expand Down
1 change: 0 additions & 1 deletion src/actorptrselect.cpp
Expand Up @@ -34,7 +34,6 @@
#include "actorptrselect.h"
#include "actor.h"
#include "d_player.h"
#include "p_pspr.h"
#include "p_local.h"

//==========================================================================
Expand Down
13 changes: 0 additions & 13 deletions src/am_map.cpp
Expand Up @@ -30,14 +30,11 @@
#include "doomdef.h"
#include "templates.h"
#include "g_level.h"
#include "doomdef.h"
#include "st_stuff.h"
#include "p_local.h"
#include "p_lnspec.h"
#include "w_wad.h"
#include "a_sharedglobal.h"
#include "statnums.h"
#include "r_data/r_translate.h"
#include "d_event.h"
#include "gi.h"
#include "p_setup.h"
Expand All @@ -50,19 +47,10 @@
#include "p_blockmap.h"

#include "m_cheat.h"
#include "i_system.h"
#include "c_dispatch.h"
#include "colormatcher.h"
#include "d_netinf.h"

// Needs access to LFB.
#include "v_video.h"
#include "v_palette.h"

#include "v_text.h"

// State.
#include "doomstat.h"
#include "r_state.h"
#include "r_utility.h"

Expand All @@ -72,7 +60,6 @@
#include "am_map.h"
#include "po_man.h"
#include "a_keys.h"
#include "r_data/colormaps.h"
#include "g_levellocals.h"
#include "actorinlines.h"

Expand Down
1 change: 0 additions & 1 deletion src/b_bot.cpp
Expand Up @@ -40,7 +40,6 @@
#include "c_cvars.h"
#include "c_dispatch.h"
#include "b_bot.h"
#include "m_argv.h"
#include "doomstat.h"
#include "p_local.h"
#include "cmdlib.h"
Expand Down
6 changes: 0 additions & 6 deletions src/b_func.cpp
Expand Up @@ -48,12 +48,6 @@
#include "p_maputl.h"
#include "b_bot.h"
#include "g_game.h"
#include "m_random.h"
#include "r_sky.h"
#include "st_stuff.h"
#include "stats.h"
#include "i_system.h"
#include "s_sound.h"
#include "d_event.h"
#include "d_player.h"
#include "p_spec.h"
Expand Down
5 changes: 0 additions & 5 deletions src/b_game.cpp
Expand Up @@ -81,20 +81,15 @@ Everything that is changed is marked (maybe commented) with "Added by MC"
#include "p_local.h"
#include "b_bot.h"
#include "g_game.h"
#include "m_random.h"
#include "doomstat.h"
#include "cmdlib.h"
#include "sc_man.h"
#include "stats.h"
#include "m_misc.h"
#include "sbar.h"
#include "p_acs.h"
#include "teaminfo.h"
#include "i_system.h"
#include "d_net.h"
#include "d_netinf.h"
#include "d_player.h"
#include "doomerrors.h"
#include "events.h"
#include "vm.h"

Expand Down
5 changes: 0 additions & 5 deletions src/b_move.cpp
Expand Up @@ -44,19 +44,14 @@
#include "p_local.h"
#include "b_bot.h"
#include "g_game.h"
#include "d_protocol.h"
#include "m_random.h"
#include "i_system.h"
#include "p_lnspec.h"
#include "gi.h"
#include "a_keys.h"
#include "d_event.h"
#include "p_enemy.h"
#include "d_player.h"
#include "p_spec.h"
#include "p_checkposition.h"
#include "actorinlines.h"
#include "math/cmath.h"

static FRandom pr_botopendoor ("BotOpenDoor");
static FRandom pr_bottrywalk ("BotTryWalk");
Expand Down
5 changes: 0 additions & 5 deletions src/b_think.cpp
Expand Up @@ -47,14 +47,9 @@
#include "p_local.h"
#include "b_bot.h"
#include "g_game.h"
#include "m_random.h"
#include "stats.h"
#include "a_pickups.h"
#include "statnums.h"
#include "d_net.h"
#include "d_event.h"
#include "d_player.h"
#include "vectors.h"
#include "actorinlines.h"

static FRandom pr_botmove ("BotMove");
Expand Down
4 changes: 0 additions & 4 deletions src/bbannouncer.cpp
Expand Up @@ -44,11 +44,7 @@

#include "actor.h"
#include "gstrings.h"
#include "s_sound.h"
#include "m_random.h"
#include "d_player.h"
#include "g_level.h"
#include "doomstat.h"
#include "g_levellocals.h"

// MACROS ------------------------------------------------------------------
Expand Down
6 changes: 0 additions & 6 deletions src/c_bind.cpp
Expand Up @@ -34,24 +34,18 @@

#include "doomtype.h"
#include "doomdef.h"
#include "cmdlib.h"
#include "c_dispatch.h"
#include "c_bind.h"
#include "g_level.h"
#include "hu_stuff.h"
#include "gi.h"
#include "configfile.h"
#include "i_system.h"
#include "d_event.h"
#include "w_wad.h"
#include "templates.h"
#include "dobject.h"
#include "vm.h"
#include "i_time.h"

#include <math.h>
#include <stdlib.h>

const char *KeyNames[NUM_KEYS] =
{
// This array is dependant on the particular keyboard input
Expand Down
5 changes: 0 additions & 5 deletions src/c_cmds.cpp
Expand Up @@ -35,7 +35,6 @@
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>

#ifdef _WIN32
#include <direct.h>
Expand All @@ -56,21 +55,17 @@
#include "g_game.h"
#include "g_level.h"
#include "w_wad.h"
#include "g_level.h"
#include "gi.h"
#include "r_defs.h"
#include "d_player.h"
#include "templates.h"
#include "p_local.h"
#include "r_sky.h"
#include "p_setup.h"
#include "cmdlib.h"
#include "d_net.h"
#include "v_text.h"
#include "p_lnspec.h"
#include "v_video.h"
#include "r_utility.h"
#include "r_data/r_interpolate.h"
#include "c_functions.h"
#include "g_levellocals.h"

Expand Down
9 changes: 0 additions & 9 deletions src/c_console.cpp
Expand Up @@ -34,10 +34,6 @@

#include "templates.h"
#include "p_setup.h"
#include <stdarg.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>

#include "version.h"
#include "g_game.h"
Expand All @@ -49,27 +45,22 @@
#include "i_system.h"
#include "i_video.h"
#include "g_input.h"
#include "m_swap.h"
#include "v_palette.h"
#include "v_video.h"
#include "v_text.h"
#include "w_wad.h"
#include "sbar.h"
#include "s_sound.h"
#include "s_sndseq.h"
#include "doomstat.h"
#include "d_gui.h"
#include "v_video.h"
#include "cmdlib.h"
#include "d_net.h"
#include "g_level.h"
#include "d_event.h"
#include "d_player.h"
#include "gstrings.h"
#include "c_consolebuffer.h"
#include "g_levellocals.h"
#include "vm.h"
#include "i_time.h"

FString FStringFormat(VM_ARGS); // extern from thingdef_data.cpp

Expand Down
7 changes: 0 additions & 7 deletions src/c_cvars.cpp
Expand Up @@ -33,7 +33,6 @@
*/

#include <string.h>
#include <stdio.h>
#include <assert.h>

#include "cmdlib.h"
Expand All @@ -42,18 +41,12 @@
#include "c_dispatch.h"

#include "doomstat.h"
#include "c_cvars.h"
#include "d_player.h"

#include "d_netinf.h"

#include "i_system.h"
#include "v_palette.h"
#include "v_video.h"
#include "colormatcher.h"
#include "menu/menu.h"
#include "vm.h"
#include "v_text.h"

struct FLatchedValue
{
Expand Down
2 changes: 0 additions & 2 deletions src/c_dispatch.cpp
Expand Up @@ -38,7 +38,6 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>

#include "templates.h"
#include "doomtype.h"
Expand All @@ -49,7 +48,6 @@
#include "doomstat.h"
#include "d_player.h"
#include "configfile.h"
#include "m_crc32.h"
#include "v_text.h"
#include "d_net.h"
#include "d_main.h"
Expand Down
1 change: 0 additions & 1 deletion src/c_expr.cpp
Expand Up @@ -35,7 +35,6 @@
// HEADER FILES ------------------------------------------------------------

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>

Expand Down
1 change: 0 additions & 1 deletion src/colormatcher.cpp
Expand Up @@ -39,7 +39,6 @@
*/

#include <stdlib.h>
#include <string.h>

#include "doomtype.h"
#include "colormatcher.h"
Expand Down
4 changes: 0 additions & 4 deletions src/compatibility.cpp
Expand Up @@ -41,16 +41,12 @@

#include "compatibility.h"
#include "sc_man.h"
#include "cmdlib.h"
#include "doomdef.h"
#include "doomdata.h"
#include "doomstat.h"
#include "c_dispatch.h"
#include "gi.h"
#include "g_level.h"
#include "p_lnspec.h"
#include "p_tags.h"
#include "r_state.h"
#include "w_wad.h"
#include "textures.h"
#include "g_levellocals.h"
Expand Down
5 changes: 0 additions & 5 deletions src/ct_chat.cpp
Expand Up @@ -26,20 +26,15 @@
#include "doomdef.h"
#include "m_swap.h"
#include "hu_stuff.h"
#include "w_wad.h"
#include "s_sound.h"
#include "doomstat.h"
#include "st_stuff.h"
#include "c_console.h"
#include "c_dispatch.h"
#include "c_cvars.h"
#include "d_player.h"
#include "v_text.h"
#include "v_video.h"
#include "gi.h"
#include "d_gui.h"
#include "g_input.h"
#include "templates.h"
#include "d_net.h"
#include "d_event.h"
#include "sbar.h"
Expand Down
11 changes: 0 additions & 11 deletions src/d_dehacked.cpp
Expand Up @@ -48,30 +48,19 @@
#include "doomstat.h"
#include "info.h"
#include "d_dehacked.h"
#include "s_sound.h"
#include "g_level.h"
#include "cmdlib.h"
#include "gstrings.h"
#include "m_alloc.h"
#include "m_misc.h"
#include "w_wad.h"
#include "d_player.h"
#include "r_state.h"
#include "gi.h"
#include "c_dispatch.h"
#include "decallib.h"
#include "v_palette.h"
#include "a_sharedglobal.h"
#include "vectors.h"
#include "dobject.h"
#include "r_data/r_translate.h"
#include "sc_man.h"
#include "i_system.h"
#include "doomerrors.h"
#include "p_effect.h"
#include "serializer.h"
#include "thingdef.h"
#include "info.h"
#include "v_text.h"
#include "backend/vmbuilder.h"
#include "types.h"
Expand Down
3 changes: 0 additions & 3 deletions src/d_iwad.cpp
Expand Up @@ -38,11 +38,8 @@
#include "doomstat.h"
#include "i_system.h"
#include "w_wad.h"
#include "w_zip.h"
#include "v_palette.h"
#include "m_argv.h"
#include "m_misc.h"
#include "c_cvars.h"
#include "sc_man.h"
#include "v_video.h"
#include "gameconfigfile.h"
Expand Down

0 comments on commit fb9c8c1

Please sign in to comment.