summaryrefslogtreecommitdiff
path: root/include/command_parse.h
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 /include/command_parse.h
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 'include/command_parse.h')
-rw-r--r--include/command_parse.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/command_parse.h b/include/command_parse.h
index 480151612..b39bf31c0 100644
--- a/include/command_parse.h
+++ b/include/command_parse.h
@@ -30,13 +30,6 @@
class CoreExport CommandParser
{
private:
- /** Process a parameter string into a list of items
- * @param command_p The output list of items
- * @param parameters The input string
- * @return The number of parameters parsed into command_p
- */
- int ProcessParameters(std::vector<std::string>& command_p, char* parameters);
-
/** Process a command from a user.
* @param user The user to parse the command for
* @param cmd The command string to process
@@ -70,16 +63,6 @@ class CoreExport CommandParser
*/
Command* GetHandler(const std::string &commandname);
- /** This function returns true if a command is valid with the given number of parameters and user.
- * @param commandname The command name to check
- * @param pcnt The parameter count
- * @param user The user to check against
- * @return If the user given has permission to execute the command, and the parameter count is
- * equal to or greater than the minimum number of parameters to the given command, then this
- * function will return true, otherwise it will return false.
- */
- bool IsValidCommand(const std::string &commandname, unsigned int pcnt, User * user);
-
/** LoopCall is used to call a command handler repeatedly based on the contents of a comma seperated list.
* There are two ways to call this method, either with one potential list or with two potential lists.
* We need to handle two potential lists for JOIN, because a JOIN may contain two lists of items at once: