]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Delete some obsolete comments.
authorPeter Powell <petpow@saberuk.com>
Thu, 9 May 2019 11:37:44 +0000 (12:37 +0100)
committerPeter Powell <petpow@saberuk.com>
Thu, 9 May 2019 11:37:44 +0000 (12:37 +0100)
src/modules/m_nickflood.cpp
src/modules/m_spanningtree/compat.cpp
src/users.cpp

index 17d6db9560184802169389466bb70122bc64e580..9b8bbcdb6e823666faf11c97fd0e4a4ca3f4ef6a 100644 (file)
@@ -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));
        }
 
index aacae5deab8a65fc9781c056ee723c393b0ff303..8d24cfe90619140bb617cbb4f244fb1c0e2ec055 100644 (file)
@@ -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")
index aaaa06f19293bf989469a88836ff029e43e61156..3e1b4a8d46dc76aa0826424c43bceaa2ae9994f9 100644 (file)
@@ -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;
 }