From 83539a90a98841bf77e7d09d1faed9a4cc30c504 Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Sat, 8 Nov 2008 16:31:13 +0000 Subject: Remove completely unused and quite duplicated run_cmd() vs mod_run_cmd(). git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1594 5417fbe8-f217-4b02-8779-1006273d7864 --- include/commands.h | 2 -- src/commands.c | 17 ----------------- 2 files changed, 19 deletions(-) diff --git a/include/commands.h b/include/commands.h index bff95eb16..f426f38d7 100644 --- a/include/commands.h +++ b/include/commands.h @@ -21,8 +21,6 @@ */ extern MDE Command *lookup_cmd(Command *list, char *name); -extern void run_cmd(char *service, User *u, Command *list, - char *name); extern void help_cmd(char *service, User *u, Command *list, char *name); extern void do_run_cmd(char *service, User * u, Command *c,const char *cmd); diff --git a/src/commands.c b/src/commands.c index c78bce52f..e0e14635d 100644 --- a/src/commands.c +++ b/src/commands.c @@ -39,23 +39,6 @@ Command *lookup_cmd(Command * list, char *cmd) /*************************************************************************/ -/** - * Run the routine for the given command, if it exists and the user has - * privilege to do so; if not, print an appropriate error message. - * @param services Services Client - * @param u User Struct - * @param list Command struct - * @param cmd Command - * @return void - */ -void run_cmd(char *service, User * u, Command * list, char *cmd) -{ - Command *c = lookup_cmd(list, cmd); - do_run_cmd(service, u, c, cmd); -} - -/*************************************************************************/ - /** * Run the routine for the given command, if it exists and the user has * privilege to do so; if not, print an appropriate error message. -- cgit