From 55ad0595a714dcf07e94fe2fafc790c0be7a85a1 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 22 Mar 2016 18:41:30 +0100 Subject: [PATCH] Remove now unused overload of User::SendText() --- include/users.h | 6 ------ src/users.cpp | 17 ----------------- 2 files changed, 23 deletions(-) diff --git a/include/users.h b/include/users.h index 8d53197ba..c2ad6b9ee 100644 --- a/include/users.h +++ b/include/users.h @@ -663,12 +663,6 @@ class CoreExport User : public Extensible */ void ForEachNeighbor(ForEachNeighborHandler& handler, bool include_self = true); - /** Dump text to a user target, splitting it appropriately to fit - * @param linePrefix text to prefix each complete line with - * @param textStream the text to send to the user - */ - void SendText(const std::string& linePrefix, std::stringstream& textStream); - /** Write to the user, routing the line if the user is remote. */ virtual void SendText(const std::string& line) = 0; diff --git a/src/users.cpp b/src/users.cpp index db5f8a74d..12fb902fb 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -947,23 +947,6 @@ void User::SendText(const char *text, ...) SendText(line); } -void User::SendText(const std::string& linePrefix, std::stringstream& textStream) -{ - std::string line; - std::string word; - while (textStream >> word) - { - size_t lineLength = linePrefix.length() + line.length() + word.length() + 3; // "\s\n\r" - if (lineLength > ServerInstance->Config->Limits.MaxLine) - { - SendText(linePrefix + line); - line.clear(); - } - line += " " + word; - } - SendText(linePrefix + line); -} - void User::WriteRemoteNumeric(const Numeric::Numeric& numeric) { const std::string& servername = (numeric.GetServer() ? numeric.GetServer()->GetName() : ServerInstance->Config->ServerName); -- 2.39.5