From 3c14fd2155725038ddd97beefee6c47742f6be82 Mon Sep 17 00:00:00 2001 From: peavey Date: Sun, 17 Dec 2006 02:58:57 +0000 Subject: [PATCH] Make RemoveCommand private. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6030 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/command_parse.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/command_parse.h b/include/command_parse.h index b9e57035d..5750416db 100644 --- a/include/command_parse.h +++ b/include/command_parse.h @@ -72,6 +72,12 @@ class CommandParser : public classbase */ void LoadCommand(const char* name); + /** Removes a command if the sources match. Used as a helper for + * safe hash_map delete while iter in RemoveCommands(const char* source). + */ + void RemoveCommand(nspace::hash_map::iterator safei, const char* source); + + public: /** Command list, a hash_map of command names to command_t* */ @@ -175,8 +181,6 @@ class CommandParser : public classbase */ bool RemoveCommands(const char* source); - void RemoveCommand(nspace::hash_map::iterator safei, const char* source); - /** Add a new command to the commands hash * @param f The new command_t to add to the list * @param so_handle The handle to the shared object where the command can be found. -- 2.39.2