From ad37496d34c0cfec724c221524538248cb8565f5 Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Thu, 10 Apr 2008 19:25:50 +0000 Subject: [PATCH] just some cleaning --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402029 --- extensions/sdktools/detours.cpp | 39 --------------------------- extensions/sdktools/output.cpp | 5 ++-- extensions/sdktools/outputnatives.cpp | 2 -- extensions/sdktools/vhelpers.cpp | 7 ----- 4 files changed, 2 insertions(+), 51 deletions(-) delete mode 100644 extensions/sdktools/detours.cpp diff --git a/extensions/sdktools/detours.cpp b/extensions/sdktools/detours.cpp deleted file mode 100644 index be18add3..00000000 --- a/extensions/sdktools/detours.cpp +++ /dev/null @@ -1,39 +0,0 @@ -/** - * vim: set ts=4 : - * ============================================================================= - * SourceMod SDKTools Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. - * ============================================================================= - * - * This program is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, version 3.0, as published by the - * Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - * - * As a special exception, AlliedModders LLC gives you permission to link the - * code of this program (as well as its derivative works) to "Half-Life 2," the - * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software - * by the Valve Corporation. You must obey the GNU General Public License in - * all respects for all other code used. Additionally, AlliedModders LLC grants - * this exception to all derivative works. AlliedModders LLC defines further - * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), - * or . - * - * Version: $Id: tenatives.cpp 1566 2007-10-14 22:12:46Z faluco $ - */ - -#include "extension.h" -#include "output.h" - - - - - - diff --git a/extensions/sdktools/output.cpp b/extensions/sdktools/output.cpp index 24bb8434..62f53b1f 100644 --- a/extensions/sdktools/output.cpp +++ b/extensions/sdktools/output.cpp @@ -437,6 +437,7 @@ const char *EntityOutputManager::FindOutputName(void *pOutput, CBaseEntity *pCal return NULL; } + #if 0 // Almost identical copy of this function from cbase.cpp - FIELD_EHANDLE changed to remove dependencies const char *variant_t::ToString( void ) const @@ -518,6 +519,7 @@ const char *variant_t::ToString( void ) const return("No conversion to string"); } #endif + // Thanks SM core edict_t *EntityOutputManager::BaseHandleToEdict(CBaseHandle &hndl) { @@ -551,6 +553,3 @@ edict_t *EntityOutputManager::BaseHandleToEdict(CBaseHandle &hndl) return pStoredEdict; } - - - diff --git a/extensions/sdktools/outputnatives.cpp b/extensions/sdktools/outputnatives.cpp index a5519373..47e3bc11 100644 --- a/extensions/sdktools/outputnatives.cpp +++ b/extensions/sdktools/outputnatives.cpp @@ -32,7 +32,6 @@ #include "extension.h" #include "output.h" - // HookSingleEntityOutput(ent, const String:output[], function, bool:once); cell_t HookSingleEntityOutput(IPluginContext *pContext, const cell_t *params) { @@ -98,7 +97,6 @@ cell_t HookSingleEntityOutput(IPluginContext *pContext, const cell_t *params) return 1; } - // HookEntityOutput(const String:classname[], const String:output[], function); cell_t HookEntityOutput(IPluginContext *pContext, const cell_t *params) { diff --git a/extensions/sdktools/vhelpers.cpp b/extensions/sdktools/vhelpers.cpp index 5a73dcec..6c7dfec6 100644 --- a/extensions/sdktools/vhelpers.cpp +++ b/extensions/sdktools/vhelpers.cpp @@ -824,10 +824,3 @@ CON_COMMAND(sm_dump_datamaps, "Dumps the data map list as a text file") fclose(fp); } - - - - - - -