diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-06-18 21:25:43 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-06-18 21:25:43 +0200 |
commit | 50ecf259b61eb389559dc24a7c4af718c225ec8d (patch) | |
tree | b0475a42827973ff338e5a1d6b1b56c81dcaac89 /include | |
parent | e0cb6bd46fb1d804ad6adea5688c844f7e1a0f6f (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')
-rw-r--r-- | include/command_parse.h | 17 | ||||
-rw-r--r-- | include/inspircd.h | 22 | ||||
-rw-r--r-- | include/typedefs.h | 6 |
3 files changed, 0 insertions, 45 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: diff --git a/include/inspircd.h b/include/inspircd.h index 4845a777e..a25466647 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -265,11 +265,6 @@ class CoreExport InspIRCd */ bool DaemonSeed(); - /** Iterate the list of BufferedSocket objects, removing ones which have timed out - * @param TIME the current time - */ - void DoSocketTimeouts(time_t TIME); - /** The current time, updated in the mainloop */ struct timespec TIME; @@ -544,15 +539,6 @@ class CoreExport InspIRCd */ caller1<bool, const std::string&> IsIdent; - /** Add a command to this server's command parser - * @param f A Command command handler object to add - * @throw ModuleException Will throw ModuleExcption if the command already exists - */ - inline void AddCommand(Command *f) - { - Modules->AddService(*f); - } - /** Match two strings using pattern matching, optionally, with a map * to check case against (may be NULL). If map is null, match will be case insensitive. * @param str The literal string to match against @@ -694,14 +680,6 @@ class CoreExport InspIRCd */ caller3<ModResult, User*, Channel*, const std::string&> OnCheckExemption; - /** Restart the server. - * This function will not return. If an error occurs, - * it will throw an instance of CoreException. - * @param reason The restart reason to show to all clients - * @throw CoreException An instance of CoreException indicating the error from execv(). - */ - void Restart(const std::string &reason); - /** Prepare the ircd for restart or shutdown. * This function unloads all modules which can be unloaded, * closes all open sockets, and closes the logfile. diff --git a/include/typedefs.h b/include/typedefs.h index 404175ddb..c38f89d4d 100644 --- a/include/typedefs.h +++ b/include/typedefs.h @@ -22,11 +22,9 @@ #pragma once class BanCacheManager; -class BanItem; class BufferedSocket; class Channel; class Command; -class ConfigReader; class ConfigTag; class Extensible; class FakeUser; @@ -77,10 +75,6 @@ typedef std::set<Channel*> UserChanList; */ typedef UserChanList::iterator UCListIter; -/** Holds a complete ban list - */ -typedef std::vector<BanItem> BanList; - /** A list of custom modes parameters on a channel */ typedef std::map<char,std::string> CustomModeList; |