From b13beb3c1d965dd1a2a8dd3bdbea3d66242c3298 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 8 Oct 2013 11:44:02 +0300 Subject: remove unused system headers. also remplace legacy headers. --- src/configuration.cpp | 2 -- src/debug/debug_new.cpp | 1 - src/debug/debug_new.h | 1 - src/debug/fast_mutex.h | 1 - src/gui/palette.cpp | 2 +- src/gui/windows/itemamountwindow.cpp | 2 -- src/logger.cpp | 2 -- src/map.cpp | 2 +- src/mumblemanager.cpp | 5 +---- src/mumblemanager.h | 1 - src/net/download.h | 1 - src/net/ea/network.cpp | 1 - src/particle/rotationalparticle.cpp | 2 +- src/resources/db/npcdb.h | 2 -- src/resources/dye.cpp | 2 +- src/resources/wallpaper.cpp | 2 +- src/utils/base64.cpp | 3 +-- src/utils/mathutils.h | 1 - src/utils/paths.cpp | 4 +--- src/utils/physfsrwops.cpp | 2 -- src/utils/process.cpp | 1 - src/utils/stringutils.cpp | 6 +++--- src/utils/translation/poparser.cpp | 2 -- src/utils/translation/translationmanager.cpp | 2 -- src/vector.h | 2 +- 25 files changed, 12 insertions(+), 40 deletions(-) diff --git a/src/configuration.cpp b/src/configuration.cpp index 3fb323dd2..489755341 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -27,8 +27,6 @@ #include "utils/paths.h" -#include - #include "debug.h" #ifdef DEBUG_CONFIG diff --git a/src/debug/debug_new.cpp b/src/debug/debug_new.cpp index b1242cc09..572a96e08 100644 --- a/src/debug/debug_new.cpp +++ b/src/debug/debug_new.cpp @@ -42,7 +42,6 @@ #ifdef ENABLE_MEM_DEBUG #include #include -#include #include #include #ifdef __unix__ diff --git a/src/debug/debug_new.h b/src/debug/debug_new.h index 00861f0bf..67b588f32 100644 --- a/src/debug/debug_new.h +++ b/src/debug/debug_new.h @@ -43,7 +43,6 @@ #define M_DEBUG_NEW_H #include -#include /** * @def HAVE_PLACEMENT_DELETE diff --git a/src/debug/fast_mutex.h b/src/debug/fast_mutex.h index 6fe51e6d8..d54f2e353 100644 --- a/src/debug/fast_mutex.h +++ b/src/debug/fast_mutex.h @@ -92,7 +92,6 @@ # endif # ifdef _DEBUG -# include # include /** Macro for fast_mutex assertions. Real version (for debug mode). */ # define _FAST_MUTEX_ASSERT(_Expr, _Msg) \ diff --git a/src/gui/palette.cpp b/src/gui/palette.cpp index ada4f2e5b..0f7d76e85 100644 --- a/src/gui/palette.cpp +++ b/src/gui/palette.cpp @@ -25,7 +25,7 @@ #include "client.h" -#include +#include #include "debug.h" diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp index 8816be8dc..7ad559c92 100644 --- a/src/gui/windows/itemamountwindow.cpp +++ b/src/gui/windows/itemamountwindow.cpp @@ -48,8 +48,6 @@ #include "utils/gettext.h" -#include - #include "debug.h" class ItemsModal final : public gcn::ListModel diff --git a/src/logger.cpp b/src/logger.cpp index a7760a472..12a51070d 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -31,8 +31,6 @@ #include #elif defined __APPLE__ #include -#elif defined(__linux__) || defined(__linux) -#include #endif #include diff --git a/src/map.cpp b/src/map.cpp index 3ff62e88d..d02507180 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -46,7 +46,7 @@ #include "utils/mkdir.h" #include "utils/physfstools.h" -#include +#include #include #include diff --git a/src/mumblemanager.cpp b/src/mumblemanager.cpp index 3bd961bac..b69094519 100644 --- a/src/mumblemanager.cpp +++ b/src/mumblemanager.cpp @@ -19,12 +19,9 @@ #ifdef __OpenBSD__ #include #endif -#include -#include #include -#include +#include -#include #include #include #include diff --git a/src/mumblemanager.h b/src/mumblemanager.h index 039312c17..8c5354a6c 100644 --- a/src/mumblemanager.h +++ b/src/mumblemanager.h @@ -18,7 +18,6 @@ #if defined (__FreeBSD__) || (defined __DragonFly__) #include #endif -#include #include "localconsts.h" diff --git a/src/net/download.h b/src/net/download.h index 8850b3512..43821a0e2 100644 --- a/src/net/download.h +++ b/src/net/download.h @@ -23,7 +23,6 @@ #ifndef NET_DOWNLOAD_H #define NET_DOWNLOAD_H -#include #include #include "localconsts.h" diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp index 2ad8fbf03..87ab01722 100644 --- a/src/net/ea/network.cpp +++ b/src/net/ea/network.cpp @@ -28,7 +28,6 @@ #include "utils/gettext.h" #include "utils/sdlhelper.h" -#include #include #include "debug.h" diff --git a/src/particle/rotationalparticle.cpp b/src/particle/rotationalparticle.cpp index a6588acba..c16baf391 100644 --- a/src/particle/rotationalparticle.cpp +++ b/src/particle/rotationalparticle.cpp @@ -24,7 +24,7 @@ #include "simpleanimation.h" -#include +#include #include "debug.h" diff --git a/src/resources/db/npcdb.h b/src/resources/db/npcdb.h index 75215e0dd..ac4b0d417 100644 --- a/src/resources/db/npcdb.h +++ b/src/resources/db/npcdb.h @@ -23,8 +23,6 @@ #ifndef RESOURCES_DB_NPCDB_H #define RESOURCES_DB_NPCDB_H -#include - #include #include "localconsts.h" diff --git a/src/resources/dye.cpp b/src/resources/dye.cpp index 873c2a8fe..aebb8f009 100644 --- a/src/resources/dye.cpp +++ b/src/resources/dye.cpp @@ -26,7 +26,7 @@ #include "resources/db/palettedb.h" -#include +#include #include #include diff --git a/src/resources/wallpaper.cpp b/src/resources/wallpaper.cpp index 513e1c8fc..17449f898 100644 --- a/src/resources/wallpaper.cpp +++ b/src/resources/wallpaper.cpp @@ -30,7 +30,7 @@ #include #include -#include +#include #include "debug.h" diff --git a/src/utils/base64.cpp b/src/utils/base64.cpp index 4e1061b6e..4ba721177 100644 --- a/src/utils/base64.cpp +++ b/src/utils/base64.cpp @@ -29,8 +29,7 @@ #include "utils/base64.h" -#include -#include +#include #include "debug.h" diff --git a/src/utils/mathutils.h b/src/utils/mathutils.h index 094ae984c..01078baf3 100644 --- a/src/utils/mathutils.h +++ b/src/utils/mathutils.h @@ -24,7 +24,6 @@ #define UTILS_MATHUTILS_H #include -#include #include #include "localconsts.h" diff --git a/src/utils/paths.cpp b/src/utils/paths.cpp index dbbdf6b31..e3992cd72 100644 --- a/src/utils/paths.cpp +++ b/src/utils/paths.cpp @@ -30,13 +30,11 @@ #include "resources/resourcemanager.h" -#include - #ifdef WIN32 #include "utils/specialfolder.h" #define realpath(N, R) _fullpath((R), (N), _MAX_PATH) #elif defined __OpenBSD__ -#include +#include #endif #ifdef ANDROID diff --git a/src/utils/physfsrwops.cpp b/src/utils/physfsrwops.cpp index aa5caf7c7..d6a1e891a 100644 --- a/src/utils/physfsrwops.cpp +++ b/src/utils/physfsrwops.cpp @@ -29,8 +29,6 @@ #include "utils/fuzzer.h" #include "utils/physfscheckutils.h" -#include - #include "debug.h" #ifdef USE_SDL2 diff --git a/src/utils/process.cpp b/src/utils/process.cpp index 0675adae3..1bd8430b5 100644 --- a/src/utils/process.cpp +++ b/src/utils/process.cpp @@ -23,7 +23,6 @@ #include #include -#include #include #include "localconsts.h" diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index 9c5a53791..e1486d91b 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -22,13 +22,13 @@ #include "utils/stringutils.h" -#include +#include #include #include #include -#include +#include #include -#include +#include #include "debug.h" diff --git a/src/utils/translation/poparser.cpp b/src/utils/translation/poparser.cpp index b2034903d..6405e5f85 100644 --- a/src/utils/translation/poparser.cpp +++ b/src/utils/translation/poparser.cpp @@ -26,8 +26,6 @@ #include "logger.h" -#include - #include "debug.h" PoParser::PoParser() : diff --git a/src/utils/translation/translationmanager.cpp b/src/utils/translation/translationmanager.cpp index 6036ddeab..ebe7c8436 100644 --- a/src/utils/translation/translationmanager.cpp +++ b/src/utils/translation/translationmanager.cpp @@ -28,8 +28,6 @@ #include "resources/resourcemanager.h" -#include - #include "logger.h" #include "debug.h" diff --git a/src/vector.h b/src/vector.h index 4ba524c0d..66a0d501f 100644 --- a/src/vector.h +++ b/src/vector.h @@ -23,7 +23,7 @@ #ifndef VECTOR_H #define VECTOR_H -#include +#include #include -- cgit v1.2.3-70-g09d2