From 6a7f216615c1796cf95c0d28b300a1468e0b0f68 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Mon, 5 Feb 2007 08:58:03 +0000 Subject: [PATCH] Worst commit ever, but I have removed some unnecessary things --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40438 --- core/smn_float.cpp | 8 +------- core/smn_string.cpp | 3 --- public/IAdminSystem.h | 2 +- public/IExtensionSys.h | 2 +- public/IForwardSys.h | 4 ++-- public/IHandleSys.h | 2 +- public/ILibrarySys.h | 2 +- public/IPluginSys.h | 2 +- public/IRootConsoleMenu.h | 2 +- public/IShareSys.h | 2 +- public/ISourceMod.h | 2 +- public/ITextParsers.h | 2 +- 12 files changed, 12 insertions(+), 21 deletions(-) diff --git a/core/smn_float.cpp b/core/smn_float.cpp index bacbe516..e54fd80b 100644 --- a/core/smn_float.cpp +++ b/core/smn_float.cpp @@ -12,13 +12,7 @@ */ #include -#include -#include -#include "sm_autonatives.h" -#include "sp_vm_api.h" -#include "sp_typeutil.h" - -using namespace SourcePawn; +#include "sm_globals.h" /**************************************** * * diff --git a/core/smn_string.cpp b/core/smn_string.cpp index 0d746722..e864cb99 100644 --- a/core/smn_string.cpp +++ b/core/smn_string.cpp @@ -11,14 +11,11 @@ * Version: $Id$ */ -#include "sm_platform.h" #include #include #include "sm_globals.h" #include "sm_stringutil.h" -using namespace SourcePawn; - inline const char *_strstr(const char *str, const char *substr) { #ifdef PLATFORM_WINDOWS diff --git a/public/IAdminSystem.h b/public/IAdminSystem.h index 3c87681e..9877b893 100644 --- a/public/IAdminSystem.h +++ b/public/IAdminSystem.h @@ -464,6 +464,6 @@ namespace SourceMod */ virtual bool InvalidateAdmin(AdminId id) =0; }; -}; +} #endif //_INCLUDE_SOURCEMOD_ADMINISTRATION_SYSTEM_H_ diff --git a/public/IExtensionSys.h b/public/IExtensionSys.h index 0d0eed87..b3e76250 100644 --- a/public/IExtensionSys.h +++ b/public/IExtensionSys.h @@ -245,6 +245,6 @@ namespace SourceMod */ virtual bool UnloadExtension(IExtension *pExt) =0; }; -}; +} #endif //_INCLUDE_SOURCEMOD_MODULE_INTERFACE_H_ diff --git a/public/IForwardSys.h b/public/IForwardSys.h index 9139ef02..4fddf472 100644 --- a/public/IForwardSys.h +++ b/public/IForwardSys.h @@ -329,7 +329,7 @@ namespace SourceMod */ virtual void ReleaseForward(IForward *forward) =0; }; -}; +} /* * In the AMX Mod X model of forwarding, each forward contained a list of pairs, each pair containing @@ -387,7 +387,7 @@ namespace SourceMod * be immediately resolved. Unfortunately, this became extremely burdensome on the API and exposed many problems, * the major (and breaking) one was that two separate Function objects cannot be in a calling process on the same * plugin at once. (:TODO: perhaps prevent that in the IPlugin object?) This is because heap functions lose their order - * and become impossible to re-arrange without some global heap tracking mechanis. It also made iterative copy backs + * and become impossible to re-arrange without some global heap tracking mechanism. It also made iterative copy backs * for arrays/references overwhelmingly complex, since each plugin had to have its memory back-patched for each copy. * Therefore, this was scrapped for cached parameters (current implementation), which is the implementation AMX Mod X * uses. It is both faster and works better. diff --git a/public/IHandleSys.h b/public/IHandleSys.h index 9d2d283b..92cf5a72 100644 --- a/public/IHandleSys.h +++ b/public/IHandleSys.h @@ -304,6 +304,6 @@ namespace SourceMod */ virtual bool InitAccessDefaults(TypeAccess *pTypeAccess, HandleAccess *pHandleAccess) =0; }; -}; +} #endif //_INCLUDE_SOURCEMOD_HANDLESYSTEM_INTERFACE_H_ diff --git a/public/ILibrarySys.h b/public/ILibrarySys.h index bac0ede2..18dfbc1a 100644 --- a/public/ILibrarySys.h +++ b/public/ILibrarySys.h @@ -174,6 +174,6 @@ namespace SourceMod */ virtual size_t PathFormat(char *buffer, size_t maxlength, const char *pathfmt, ...) =0; }; -}; +} #endif //_INCLUDE_SOURCEMOD_LIBRARY_INTERFACE_SYS_H_ diff --git a/public/IPluginSys.h b/public/IPluginSys.h index 45e9a78d..6bafd2e7 100644 --- a/public/IPluginSys.h +++ b/public/IPluginSys.h @@ -312,6 +312,6 @@ namespace SourceMod */ virtual void RemovePluginsListener(IPluginsListener *listener) =0; }; -}; +} #endif //_INCLUDE_SOURCEMOD_PLUGINMNGR_INTERFACE_H_ diff --git a/public/IRootConsoleMenu.h b/public/IRootConsoleMenu.h index e3fcb97d..34fc04af 100644 --- a/public/IRootConsoleMenu.h +++ b/public/IRootConsoleMenu.h @@ -107,6 +107,6 @@ namespace SourceMod */ virtual void DrawGenericOption(const char *cmd, const char *text) =0; }; -}; +} #endif //_INCLUDE_SOURCEMOD_ROOT_CONSOLE_MENU_H_ diff --git a/public/IShareSys.h b/public/IShareSys.h index 559f5583..99cbf7a7 100644 --- a/public/IShareSys.h +++ b/public/IShareSys.h @@ -174,6 +174,6 @@ namespace SourceMod */ virtual void AddDependency(IExtension *myself, const char *filename, bool require, bool autoload) =0; }; -}; +} #endif //_INCLUDE_SOURCEMOD_IFACE_SHARE_SYS_H_ diff --git a/public/ISourceMod.h b/public/ISourceMod.h index 154cfa4b..ca44945c 100644 --- a/public/ISourceMod.h +++ b/public/ISourceMod.h @@ -117,6 +117,6 @@ namespace SourceMod const cell_t *params, unsigned int param) =0; }; -}; +} #endif //_INCLUDE_SOURCEMOD_MAIN_HELPER_INTERFACE_H_ diff --git a/public/ITextParsers.h b/public/ITextParsers.h index 4f8654c7..923c65cd 100644 --- a/public/ITextParsers.h +++ b/public/ITextParsers.h @@ -350,6 +350,6 @@ namespace SourceMod */ virtual unsigned int GetUTF8CharBytes(const char *stream) =0; }; -}; +} #endif //_INCLUDE_SOURCEMOD_TEXTPARSERS_INTERFACE_H_