summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-06-18 21:25:43 +0200
committerattilamolnar <attilamolnar@hush.com>2013-06-18 21:25:43 +0200
commit50ecf259b61eb389559dc24a7c4af718c225ec8d (patch)
treeb0475a42827973ff338e5a1d6b1b56c81dcaac89 /src/command_parse.cpp
parente0cb6bd46fb1d804ad6adea5688c844f7e1a0f6f (diff)
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
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp24
1 files changed, 0 insertions, 24 deletions
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<std
return true;
}
-bool CommandParser::IsValidCommand(const std::string &commandname, unsigned int pcnt, User * user)
-{
- Commandtable::iterator n = cmdlist.find(commandname);
-
- if (n != cmdlist.end())
- {
- if ((pcnt >= 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);