From 904ea94f9f3fa017b614be858756f8533e0b222c Mon Sep 17 00:00:00 2001 From: Phenom Date: Fri, 2 Oct 2015 19:10:54 +0200 Subject: [PATCH] Remove (void) --- libresapi/src/api/ChatHandler.cpp | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/libresapi/src/api/ChatHandler.cpp b/libresapi/src/api/ChatHandler.cpp index 149a14ccf..f464af4ab 100644 --- a/libresapi/src/api/ChatHandler.cpp +++ b/libresapi/src/api/ChatHandler.cpp @@ -431,9 +431,8 @@ void ChatHandler::getPlainText(const std::string& in, std::string &out, std::vec } } -void ChatHandler::handleWildcard(Request &req, Response &resp) +void ChatHandler::handleWildcard(Request &/*req*/, Response &resp) { - (void) req; RS_STACK_MUTEX(mMtx); /********** LOCKED **********/ resp.mDataStream.getStreamToMember(); for(std::map >::iterator mit = mMsgs.begin(); mit != mMsgs.end(); ++mit) @@ -489,9 +488,8 @@ void ChatHandler::handleSubscribeLobby(Request &req, Response &resp) resp.setFail("lobby join failed. (See console for more info)"); } -void ChatHandler::handleUnsubscribeLobby(Request &req, Response &resp) +void ChatHandler::handleUnsubscribeLobby(Request &req, Response &/*resp*/) { - (void) resp; ChatLobbyId id = 0; req.mStream << makeKeyValueReference("id", id); mRsMsgs->unsubscribeChatLobby(id); @@ -669,21 +667,18 @@ void ChatHandler::handleInfo(Request &req, Response &resp) resp.setOk(); } -void ChatHandler::handleTypingLabel(Request &req, Response &resp) +void ChatHandler::handleTypingLabel(Request &/*req*/, Response &/*resp*/) { - (void) req; - (void) resp; + } -void ChatHandler::handleSendStatus(Request &req, Response &resp) +void ChatHandler::handleSendStatus(Request &/*req*/, Response &/*resp*/) { - (void) req; - (void) resp; + } -void ChatHandler::handleUnreadMsgs(Request &req, Response &resp) +void ChatHandler::handleUnreadMsgs(Request &/*req*/, Response &resp) { - (void) req; RS_STACK_MUTEX(mMtx); /********** LOCKED **********/ resp.mDataStream.getStreamToMember();