From 50ecf259b61eb389559dc24a7c4af718c225ec8d Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Tue, 18 Jun 2013 21:25:43 +0200 Subject: Remove dead code from the InspIRCd and CommandParser classes and typedefs.h Removed functions: InspIRCd: - Restart() - unused - DoSocketTimeouts() - no implementation exists - AddCommand() - useless wrapper around ModuleManager::AddService() CommandParser: - IsValidCommand() - unused - ProcessParameters() - no implementation exists --- src/command_parse.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src/command_parse.cpp') diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 31e61d161..457934d2b 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -108,30 +108,6 @@ bool CommandParser::LoopCall(User* user, Command* handler, const std::vector= n->second->min_params)) - { - if (IS_LOCAL(user) && n->second->flags_needed) - { - if (user->IsModeSet(n->second->flags_needed)) - { - return (user->HasPermission(commandname)); - } - } - else - { - return true; - } - } - } - return false; -} - Command* CommandParser::GetHandler(const std::string &commandname) { Commandtable::iterator n = cmdlist.find(commandname); -- cgit v1.3.1-10-gc9f91