summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-04-02 12:52:20 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-04-02 12:52:20 +0200
commit10bae314831aefc49946e80a47cab46779cefd76 (patch)
treea002ad0416162b7042d922aeb27906b975c2b72d
parent2465f88a587199a200cdde1a11e0ac7fbd51a0da (diff)
Remove unused User::WriteCommonExcept()
WriteCommonRaw(msg, false) has similiar functionality with a std::string parameter
-rw-r--r--include/users.h6
-rw-r--r--src/users.cpp11
2 files changed, 0 insertions, 17 deletions
diff --git a/include/users.h b/include/users.h
index ed1abd37f..0f8154bef 100644
--- a/include/users.h
+++ b/include/users.h
@@ -541,12 +541,6 @@ class CoreExport User : public Extensible
*/
void WriteCommon(const char* text, ...) CUSTOM_PRINTF(2, 3);
- /** Write to all users that can see this user (not including this user in the list), appending CR/LF
- * @param text The format string for text to send to the users
- * @param ... POD-type format arguments
- */
- void WriteCommonExcept(const char* text, ...) CUSTOM_PRINTF(2, 3);
-
/** Write a quit message to all common users, as in User::WriteCommonExcept but with a specific
* quit message for opers only.
* @param normal_text Normal user quit message
diff --git a/src/users.cpp b/src/users.cpp
index 28a8bd4ea..a15c31727 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -919,17 +919,6 @@ void User::WriteCommon(const char* text, ...)
this->WriteCommonRaw(textbuffer, true);
}
-void User::WriteCommonExcept(const char* text, ...)
-{
- if (this->registered != REG_ALL || quitting)
- return;
-
- std::string textbuffer;
- VAFORMAT(textbuffer, text, text);
- textbuffer = ":" + this->GetFullHost() + " " + textbuffer;
- this->WriteCommonRaw(textbuffer, false);
-}
-
void User::WriteCommonRaw(const std::string &line, bool include_self)
{
if (this->registered != REG_ALL || quitting)