inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit 7f979b895eadd482c16a354f656493adcc28072f
parent 5610d70e4c14514e0e14be971fd0108c3ea3c1fb
Author: Peter Powell <petpow@saberuk.com>
Date:   Thu,  9 May 2019 12:37:44 +0100

Delete some obsolete comments.

Diffstat:
Msrc/modules/m_nickflood.cpp | 4----
Msrc/modules/m_spanningtree/compat.cpp | 1-
Msrc/users.cpp | 4----
3 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/src/modules/m_nickflood.cpp b/src/modules/m_nickflood.cpp @@ -54,10 +54,6 @@ class nickfloodsettings bool shouldlock() { - /* XXX HACK: using counter + 1 here now to allow the counter to only be incremented - * on successful nick changes; this will be checked before the counter is - * incremented. - */ return ((ServerInstance->Time() <= reset) && (counter == this->nicks)); } diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp @@ -48,7 +48,6 @@ void TreeSocket::WriteLine(const std::string& original_line) std::string::size_type b = line.find(' ', a + 1); std::string command(line, a + 1, b-a-1); // now try to find a translation entry - // TODO a more efficient lookup method will be needed later if (proto_version < 1205) { if (command == "IJOIN") diff --git a/src/users.cpp b/src/users.cpp @@ -121,7 +121,6 @@ const std::string& User::MakeHost() if (!this->cached_makehost.empty()) return this->cached_makehost; - // XXX: Is there really a need to cache this? this->cached_makehost = ident + "@" + GetRealHost(); return this->cached_makehost; } @@ -131,7 +130,6 @@ const std::string& User::MakeHostIP() if (!this->cached_hostip.empty()) return this->cached_hostip; - // XXX: Is there really a need to cache this? this->cached_hostip = ident + "@" + this->GetIPString(); return this->cached_hostip; } @@ -141,7 +139,6 @@ const std::string& User::GetFullHost() if (!this->cached_fullhost.empty()) return this->cached_fullhost; - // XXX: Is there really a need to cache this? this->cached_fullhost = nick + "!" + ident + "@" + GetDisplayedHost(); return this->cached_fullhost; } @@ -151,7 +148,6 @@ const std::string& User::GetFullRealHost() if (!this->cached_fullrealhost.empty()) return this->cached_fullrealhost; - // XXX: Is there really a need to cache this? this->cached_fullrealhost = nick + "!" + ident + "@" + GetRealHost(); return this->cached_fullrealhost; }