summaryrefslogtreecommitdiff
path: root/include/command_parse.h
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-05-16 20:33:46 +0200
committerattilamolnar <attilamolnar@hush.com>2013-05-16 20:33:46 +0200
commit0a8b0d317ed4adc43185c1b791bcf752115dc58e (patch)
treec2be0ec5f20ec5bdb0c8c435fe5bd57d53caeaef /include/command_parse.h
parent7fb10c11e442135988d9ea0646f6f2b4a5e421f7 (diff)
Remove unused variables, avoid copies where possible, check empty() instead of size() == 0
Most of these were detected by cppcheck
Diffstat (limited to 'include/command_parse.h')
-rw-r--r--include/command_parse.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/command_parse.h b/include/command_parse.h
index f6ff588e1..f9e3a740c 100644
--- a/include/command_parse.h
+++ b/include/command_parse.h
@@ -23,10 +23,6 @@
#ifndef COMMAND_PARSE_H
#define COMMAND_PARSE_H
-/** A list of dll/so files containing the command handlers for the core
- */
-typedef std::map<std::string, void*> SharedObjectList;
-
/** This class handles command management and parsing.
* It allows you to add and remove commands from the map,
* call command handlers by name, and chop up comma seperated
@@ -35,10 +31,6 @@ typedef std::map<std::string, void*> SharedObjectList;
class CoreExport CommandParser
{
private:
- /** Parameter buffer
- */
- std::vector<std::string> para;
-
/** Process a parameter string into a list of items
* @param command_p The output list of items
* @param parameters The input string
@@ -52,8 +44,6 @@ class CoreExport CommandParser
*/
bool ProcessCommand(LocalUser *user, std::string &cmd);
-
-
public:
/** Command list, a hash_map of command names to Command*
*/