summaryrefslogtreecommitdiff
path: root/src/commandhandler.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-11-25 01:11:42 +0300
committerAndrei Karas <akaras@inbox.ru>2011-11-25 01:11:42 +0300
commit34a492ac70b3217937eafeb6db3cb9bfdc18fba9 (patch)
treecb3e079f7a830881f0b2810ed69557669704eb81 /src/commandhandler.h
parentb8e720a33502700b42569f152d63badd26d4a9b3 (diff)
downloadmv-34a492ac70b3217937eafeb6db3cb9bfdc18fba9.tar.gz
mv-34a492ac70b3217937eafeb6db3cb9bfdc18fba9.tar.bz2
mv-34a492ac70b3217937eafeb6db3cb9bfdc18fba9.tar.xz
mv-34a492ac70b3217937eafeb6db3cb9bfdc18fba9.zip
Move A_UNUSED define to include file.
Diffstat (limited to 'src/commandhandler.h')
-rw-r--r--src/commandhandler.h41
1 files changed, 14 insertions, 27 deletions
diff --git a/src/commandhandler.h b/src/commandhandler.h
index 809e9e517..f8b44e04f 100644
--- a/src/commandhandler.h
+++ b/src/commandhandler.h
@@ -31,12 +31,6 @@ class ChatTab;
extern ChatTab *localChatTab;
-#ifdef __GNUC__
-#define A_UNUSED __attribute__ ((unused))
-#else
-#define A_UNUSED
-#endif
-
#define BOOLEAN_OPTIONS _("Options to /%s are \"yes\", \"no\", \"true\", "\
"\"false\", \"1\", \"0\".")
@@ -263,23 +257,21 @@ class CommandHandler
*/
void handleNavigate(const std::string &args, ChatTab *tab);
- void handleMail(const std::string &args, ChatTab *tab A_UNUSED);
+ void handleMail(const std::string &args, ChatTab *tab);
void handleHack(const std::string &args, ChatTab *tab);
- void handlePriceLoad(const std::string &args A_UNUSED,
- ChatTab *tab A_UNUSED);
+ void handlePriceLoad(const std::string &args, ChatTab *tab);
- void handlePriceSave(const std::string &args A_UNUSED,
- ChatTab *tab A_UNUSED);
+ void handlePriceSave(const std::string &args, ChatTab *tab);
- void handleTrade(const std::string &args, ChatTab *tab A_UNUSED);
+ void handleTrade(const std::string &args, ChatTab *tab);
- void handleDisconnect(const std::string &args, ChatTab *tab A_UNUSED);
+ void handleDisconnect(const std::string &args, ChatTab *tab);
- void handleUndress(const std::string &args, ChatTab *tab A_UNUSED);
+ void handleUndress(const std::string &args, ChatTab *tab);
- void handleAttack(const std::string &args, ChatTab *tab A_UNUSED);
+ void handleAttack(const std::string &args, ChatTab *tab);
void handleDirs(const std::string &args, ChatTab *tab);
@@ -289,22 +281,17 @@ class CommandHandler
void handleUptime(const std::string &args, ChatTab *tab);
- void handleAddAttack(const std::string &args, ChatTab *tab A_UNUSED);
+ void handleAddAttack(const std::string &args, ChatTab *tab);
- void handleAddPriorityAttack(const std::string &args,
- ChatTab *tab A_UNUSED);
+ void handleAddPriorityAttack(const std::string &args, ChatTab *tab);
- void handleRemoveAttack(const std::string &args,
- ChatTab *tab A_UNUSED);
+ void handleRemoveAttack(const std::string &args, ChatTab *tab);
- void handleAddIgnoreAttack(const std::string &args,
- ChatTab *tab A_UNUSED);
+ void handleAddIgnoreAttack(const std::string &args, ChatTab *tab);
- void handleServerIgnoreAll(const std::string &args,
- ChatTab *tab A_UNUSED);
+ void handleServerIgnoreAll(const std::string &args, ChatTab *tab);
- void handleServerUnIgnoreAll(const std::string &args,
- ChatTab *tab A_UNUSED);
+ void handleServerUnIgnoreAll(const std::string &args, ChatTab *tab);
void handleDump(const std::string &args, ChatTab *tab);
@@ -313,7 +300,7 @@ class CommandHandler
void outString(ChatTab *tab, const std::string &str,
const std::string &def);
- void handleCacheInfo(const std::string &args, ChatTab *tab A_UNUSED);
+ void handleCacheInfo(const std::string &args, ChatTab *tab);
bool parse2Int(const std::string &args, int *x, int *y);
};