summaryrefslogtreecommitdiff
path: root/include
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
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')
-rw-r--r--include/command_parse.h10
-rw-r--r--include/modules.h2
2 files changed, 1 insertions, 11 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*
*/
diff --git a/include/modules.h b/include/modules.h
index 8aedaabdd..00f2cbb62 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -116,7 +116,7 @@ struct ModResult {
* and numerical comparisons in preprocessor macros if they wish to support
* multiple versions of InspIRCd in one file.
*/
-#define INSPIRCD_VERSION_API 5
+#define INSPIRCD_VERSION_API 6
/**
* This #define allows us to call a method in all