summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-05-09 12:37:44 +0100
committerPeter Powell <petpow@saberuk.com>2019-05-09 12:37:44 +0100
commit7f979b895eadd482c16a354f656493adcc28072f (patch)
treecd6ec5fed7f1422b6eb32356e7e64aac868021ac
parent5610d70e4c14514e0e14be971fd0108c3ea3c1fb (diff)
Delete some obsolete comments.
-rw-r--r--src/modules/m_nickflood.cpp4
-rw-r--r--src/modules/m_spanningtree/compat.cpp1
-rw-r--r--src/users.cpp4
3 files changed, 0 insertions, 9 deletions
diff --git a/src/modules/m_nickflood.cpp b/src/modules/m_nickflood.cpp
index 17d6db956..9b8bbcdb6 100644
--- 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
index aacae5dea..8d24cfe90 100644
--- 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
index aaaa06f19..3e1b4a8d4 100644
--- 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;
}