]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove UserManager::GarbageCollect()
authorAttila Molnar <attilamolnar@hush.com>
Tue, 3 Nov 2015 12:16:19 +0000 (13:16 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Tue, 3 Nov 2015 12:16:19 +0000 (13:16 +0100)
include/usermanager.h
src/inspircd.cpp
src/usermanager.cpp

index 670e51dd59782e079e7b8b85aef774eaba4deef2..941569e8c02e7af1813ec95468fd7e924a3d36d8 100644 (file)
@@ -88,11 +88,6 @@ class CoreExport UserManager : public fakederef<UserManager>
         */
        unsigned int unregistered_count;
 
-       /**
-        * Reset the already_sent IDs so we don't wrap it around and drop a message
-     */
-       void GarbageCollect();
-
        /** Perform background user events such as PING checks
         */
        void DoBackgroundUserStuff();
index fce99f421ae2f39bf066cb87aa72b0f4ea7c5206..145d4582a14c71b2e3bf22ee05a9188f4e6e2b38 100644 (file)
@@ -664,10 +664,7 @@ void InspIRCd::Run()
                        OLDTIME = TIME.tv_sec;
 
                        if ((TIME.tv_sec % 3600) == 0)
-                       {
-                               Users->GarbageCollect();
                                FOREACH_MOD(OnGarbageCollect, ());
-                       }
 
                        Timers.TickTimers(TIME.tv_sec);
                        Users->DoBackgroundUserStuff();
index d81b83d20dbbc862b535bbac756e3586f64dcf91..ba6bbf36bb8e6a96bd1a2a3c6bd82211df21bf9d 100644 (file)
@@ -279,13 +279,6 @@ void UserManager::ServerNoticeAll(const char* text, ...)
        }
 }
 
-void UserManager::GarbageCollect()
-{
-       // Reset the already_sent IDs so we don't wrap it around and drop a message
-       for (LocalList::const_iterator i = local_users.begin(); i != local_users.end(); ++i)
-               (**i).already_sent = 0;
-}
-
 /* this returns true when all modules are satisfied that the user should be allowed onto the irc server
  * (until this returns true, a user will block in the waiting state, waiting to connect up to the
  * registration timeout maximum seconds)