]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/inspircd.h
Stop recreating hashmaps every hour, move garbage collection code related to local...
[user/henk/code/inspircd.git] / include / inspircd.h
index 13cd9245144bb5408dafae698b270a21915696e0..2e1cfbd21307270da775b569151136795c1e715b 100644 (file)
@@ -735,7 +735,7 @@ class CoreExport InspIRCd
         * (one year, two weeks, three days, four hours, six minutes and five seconds)
         * @return The total number of seconds
         */
-       long Duration(const std::string &str);
+       static unsigned long Duration(const std::string& str);
 
        /** Attempt to compare a password to a string from the config file.
         * This will be passed to handling modules which will compare the data
@@ -822,12 +822,6 @@ class CoreExport InspIRCd
         */
        void Cleanup();
 
-       /** This copies the user and channel hash_maps into new hash maps.
-        * This frees memory used by the hash_map allocator (which it neglects
-        * to free, most of the time, using tons of ram)
-        */
-       void RehashUsersAndChans();
-
        /** Resets the cached max bans value on all channels.
         * Called by rehash.
         */