]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove unused User::WriteCommonExcept()
authorAttila Molnar <attilamolnar@hush.com>
Wed, 2 Apr 2014 10:52:20 +0000 (12:52 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Wed, 2 Apr 2014 10:52:20 +0000 (12:52 +0200)
WriteCommonRaw(msg, false) has similiar functionality with a std::string parameter

include/users.h
src/users.cpp

index ed1abd37f4fdb071f436bcf0acd98e1caacad14a..0f8154bef5b349d94793d2d54624d9d5b01fda11 100644 (file)
@@ -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
index 28a8bd4ea341e1102c23e920165501a7346232ce..a15c3172757e1a79d1584d1029ad4efa17ccf0a9 100644 (file)
@@ -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)