From fa93426f6a7fa4cec4647f6b18fae939b49fb922 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 5 Sep 2015 21:58:36 -0700 Subject: [PATCH] Remove blanket includes from sm_stringutil. --- core/PlayerManager.cpp | 1 + core/sm_stringutil.cpp | 14 +++----------- core/sm_stringutil.h | 9 --------- core/smn_console.cpp | 1 + 4 files changed, 5 insertions(+), 20 deletions(-) diff --git a/core/PlayerManager.cpp b/core/PlayerManager.cpp index d9b3d701d..a0607ae6d 100644 --- a/core/PlayerManager.cpp +++ b/core/PlayerManager.cpp @@ -47,6 +47,7 @@ #include "logic_bridge.h" #include #include "smn_keyvalues.h" +#include #include #include #include diff --git a/core/sm_stringutil.cpp b/core/sm_stringutil.cpp index 895e42a15..9ba970d12 100644 --- a/core/sm_stringutil.cpp +++ b/core/sm_stringutil.cpp @@ -29,17 +29,10 @@ * Version: $Id$ */ -#include -#include -#include -#include #include "sm_stringutil.h" -#include "Logger.h" -#include "PlayerManager.h" -#include "logic_bridge.h" -#include "sourcemod.h" -#include -#include +#include +#include +#include char *sm_strdup(const char *str) { @@ -62,4 +55,3 @@ char *UTIL_ToLowerCase(const char *str) buffer[len] = '\0'; return buffer; } - diff --git a/core/sm_stringutil.h b/core/sm_stringutil.h index b1433fa36..4b41c8cd6 100644 --- a/core/sm_stringutil.h +++ b/core/sm_stringutil.h @@ -32,18 +32,9 @@ #ifndef _INCLUDE_SOURCEMOD_STRINGUTIL_H_ #define _INCLUDE_SOURCEMOD_STRINGUTIL_H_ -#include -#include -#include -#include - -using namespace SourcePawn; -using namespace SourceMod; - #define IS_STR_FILLED(var) (var[0] != '\0') char *sm_strdup(const char *str); char *UTIL_ToLowerCase(const char *str); #endif // _INCLUDE_SOURCEMOD_STRINGUTIL_H_ - diff --git a/core/smn_console.cpp b/core/smn_console.cpp index 7286b0d8f..93be827ee 100644 --- a/core/smn_console.cpp +++ b/core/smn_console.cpp @@ -49,6 +49,7 @@ #include "smn_keyvalues.h" #include #include +#include #if SOURCE_ENGINE == SE_CSGO || SOURCE_ENGINE == SE_DOTA #include