From: Alexey Aleshkov Date: Sun, 10 Dec 2017 11:40:03 +0000 (+0300) Subject: Cleanup includes X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=82abbc606cc5e3d9c26e2ab6d36e093ed86ae1bf;p=flatwaifu.git Cleanup includes --- diff --git a/src/config.c b/src/config.c index fbfadc0..d0c4a9f 100644 --- a/src/config.c +++ b/src/config.c @@ -24,15 +24,11 @@ #include #include #include -//#include -//#include #include "config.h" #include "vga.h" #include "error.h" #include "sound.h" -#include "keyb.h" #include "files.h" -#include "memory.h" #include "view.h" #include "player.h" #include "my.h" diff --git a/src/dots.c b/src/dots.c index ddb39a2..d89b9d6 100644 --- a/src/dots.c +++ b/src/dots.c @@ -21,14 +21,8 @@ */ #include "glob.h" -//#include #include -#include "files.h" -#include "memory.h" #include "vga.h" -#include "error.h" -#include "keyb.h" -#include "sound.h" #include "view.h" #include "dots.h" #include "misc.h" diff --git a/src/error.c b/src/error.c index 26a8f12..0e3e2af 100644 --- a/src/error.c +++ b/src/error.c @@ -23,20 +23,15 @@ #include "glob.h" #include #include -//#include #include #include #include "keyb.h" #include "sound.h" #include "vga.h" #include "memory.h" -#include "files.h" #include "error.h" #include "config.h" -#include - - void close_all(void) { S_done(); S_donemusic(); diff --git a/src/files.c b/src/files.c index bc6abd9..220d72c 100644 --- a/src/files.c +++ b/src/files.c @@ -22,24 +22,16 @@ #include "glob.h" #include -//#include -//#include #include #include -//#include -#include "vga.h" +#include #include "error.h" -#include "sound.h" -//#include "snddrv.h" -#include "memory.h" #include "view.h" #include "items.h" #include "switch.h" #include "files.h" #include "map.h" -#include - char *S_getinfo(void); extern void *snd_drv; diff --git a/src/fx.c b/src/fx.c index 7212a8a..8a38050 100644 --- a/src/fx.c +++ b/src/fx.c @@ -20,12 +20,10 @@ */ #include "glob.h" -//#include #include #include #include #include "vga.h" -#include "error.h" #include "view.h" #include "fx.h" #include "misc.h" diff --git a/src/game.c b/src/game.c index 194365e..f2f3463 100644 --- a/src/game.c +++ b/src/game.c @@ -27,7 +27,6 @@ #include "files.h" #include "memory.h" #include "vga.h" -#include "error.h" #include "keyb.h" #include "sound.h" #include "view.h" diff --git a/src/items.c b/src/items.c index 5910fa5..06230c9 100644 --- a/src/items.c +++ b/src/items.c @@ -21,12 +21,8 @@ */ #include "glob.h" -//#include #include -#include "vga.h" #include "error.h" -#include "sound.h" -#include "files.h" #include "view.h" #include "items.h" #include "fx.h" @@ -34,7 +30,6 @@ #include "monster.h" #include "things.h" #include "misc.h" -#include "memory.h" #include "map.h" extern map_block_t blk; diff --git a/src/main.c b/src/main.c index 50387ff..2fc47ce 100644 --- a/src/main.c +++ b/src/main.c @@ -22,11 +22,7 @@ #include "glob.h" #include -///#include #include -///#include -//#include -///#include #include #include #include "error.h" @@ -39,7 +35,6 @@ #include "view.h" #include "menu.h" #include "player.h" -#include "misc.h" #include "my.h" #include diff --git a/src/miscc.c b/src/miscc.c index 13359cd..4fd6353 100644 --- a/src/miscc.c +++ b/src/miscc.c @@ -27,7 +27,6 @@ #include #include "files.h" #include "memory.h" -#include "error.h" #include "vga.h" #include "sound.h" #include "view.h" diff --git a/src/monster.c b/src/monster.c index 5cf27f4..98b909e 100644 --- a/src/monster.c +++ b/src/monster.c @@ -21,12 +21,10 @@ */ #include "glob.h" -//#include #include #include #include "vga.h" #include "files.h" -#include "error.h" #include "view.h" #include "bmap.h" #include "dots.h" diff --git a/src/my.c b/src/my.c index 08877e9..c7fe41c 100644 --- a/src/my.c +++ b/src/my.c @@ -22,7 +22,6 @@ #include #include "glob.h" -#include "keyb.h" #include "error.h" #include diff --git a/src/player.c b/src/player.c index 06bf44e..fd1080a 100644 --- a/src/player.c +++ b/src/player.c @@ -23,10 +23,7 @@ #include "glob.h" #include #include -#include "files.h" -#include "memory.h" #include "vga.h" -#include "error.h" #include "keyb.h" #include "view.h" #include "dots.h" diff --git a/src/smoke.c b/src/smoke.c index 577e402..4ec8117 100644 --- a/src/smoke.c +++ b/src/smoke.c @@ -22,11 +22,7 @@ #include "glob.h" #include -#include "files.h" -#include "memory.h" #include "vga.h" -#include "error.h" -#include "sound.h" #include "view.h" #include "smoke.h" #include "fx.h" diff --git a/src/sound.c b/src/sound.c index 12c5c7f..de33434 100644 --- a/src/sound.c +++ b/src/sound.c @@ -21,7 +21,6 @@ */ #include "glob.h" -#include "files.h" #include "sound.h" #include "error.h" #include diff --git a/src/switch.c b/src/switch.c index 51e6eb0..cc418b8 100644 --- a/src/switch.c +++ b/src/switch.c @@ -22,7 +22,6 @@ #include "glob.h" #include -#include "files.h" #include "view.h" #include "bmap.h" #include "switch.h" diff --git a/src/weapons.c b/src/weapons.c index 4ccc73b..b778a0e 100644 --- a/src/weapons.c +++ b/src/weapons.c @@ -22,10 +22,6 @@ #include "glob.h" #include -//#include -#include "vga.h" -#include "error.h" -#include "sound.h" #include "view.h" #include "bmap.h" #include "dots.h"