From 406010998eee82cebe6467c4f64e446ff8b79e5f Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 22 Mar 2010 18:02:17 +0000 Subject: Move ModuleManager::UnloadAll out of modmanager_dynamic git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12649 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modmanager_dynamic.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/modmanager_dynamic.cpp') diff --git a/src/modmanager_dynamic.cpp b/src/modmanager_dynamic.cpp index 05c974063..c0114ed4e 100644 --- a/src/modmanager_dynamic.cpp +++ b/src/modmanager_dynamic.cpp @@ -282,27 +282,4 @@ void ModuleManager::LoadAll() } } -void ModuleManager::UnloadAll() -{ - /* We do this more than once, so that any service providers get a - * chance to be unhooked by the modules using them, but then get - * a chance to be removed themsleves. - * - * Note: this deliberately does NOT delete the DLLManager objects - */ - for (int tries = 0; tries < 4; tries++) - { - std::map::iterator i = Modules.begin(); - while (i != Modules.end()) - { - std::map::iterator me = i++; - if (CanUnload(me->second)) - { - DoSafeUnload(me->second); - } - } - ServerInstance->GlobalCulls.Apply(); - } -} - #endif -- cgit v1.3.1-10-gc9f91