From 0a8b0d317ed4adc43185c1b791bcf752115dc58e Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Thu, 16 May 2013 20:33:46 +0200 Subject: Remove unused variables, avoid copies where possible, check empty() instead of size() == 0 Most of these were detected by cppcheck --- include/command_parse.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'include/command_parse.h') 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 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 SharedObjectList; class CoreExport CommandParser { private: - /** Parameter buffer - */ - std::vector 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* */ -- cgit v1.2.3