summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-05-16 15:52:01 +0200
committerattilamolnar <attilamolnar@hush.com>2013-05-18 21:09:44 +0200
commitb0d652a15f46bbd05657b39ca1bcadd42769354b (patch)
tree11a6b5fa58e9de28cb7485806a7e14972ea276de
parent801af5b47303cea3c77e3cf0188031e754f6ca15 (diff)
Remove unused UserManager::ServerPrivmsgAll()
-rw-r--r--include/usermanager.h9
-rw-r--r--src/usermanager.cpp24
2 files changed, 0 insertions, 33 deletions
diff --git a/include/usermanager.h b/include/usermanager.h
index 560db17f2..1ab48925d 100644
--- a/include/usermanager.h
+++ b/include/usermanager.h
@@ -148,9 +148,6 @@ class CoreExport UserManager
*/
unsigned int LocalUserCount();
-
-
-
/** Number of users with a certain mode set on them
*/
int ModeCount(const char mode);
@@ -160,10 +157,4 @@ class CoreExport UserManager
* @param ... The format arguments
*/
void ServerNoticeAll(const char* text, ...) CUSTOM_PRINTF(2, 3);
-
- /** Send a server message (PRIVMSG) to all local users
- * @param text The text format string to send
- * @param ... The format arguments
- */
- void ServerPrivmsgAll(const char* text, ...) CUSTOM_PRINTF(2, 3);
};
diff --git a/src/usermanager.cpp b/src/usermanager.cpp
index 8ed87a338..aa0be2f3b 100644
--- a/src/usermanager.cpp
+++ b/src/usermanager.cpp
@@ -322,9 +322,6 @@ unsigned int UserManager::LocalUserCount()
void UserManager::ServerNoticeAll(const char* text, ...)
{
- if (!text)
- return;
-
char textbuffer[MAXBUF];
va_list argsPtr;
va_start (argsPtr, text);
@@ -340,27 +337,6 @@ void UserManager::ServerNoticeAll(const char* text, ...)
}
}
-void UserManager::ServerPrivmsgAll(const char* text, ...)
-{
- if (!text)
- return;
-
- char textbuffer[MAXBUF];
- va_list argsPtr;
- va_start (argsPtr, text);
- vsnprintf(textbuffer, MAXBUF, text, argsPtr);
- va_end(argsPtr);
-
- const std::string message = "PRIVMSG $" + ServerInstance->Config->ServerName + " :" + textbuffer;
-
- for (LocalUserList::const_iterator i = local_users.begin(); i != local_users.end(); i++)
- {
- User* t = *i;
- t->WriteServ(message);
- }
-}
-
-
/* return how many users have a given mode e.g. 'a' */
int UserManager::ModeCount(const char mode)
{