From e6e3ae88fb26287fa9691110a80aec3aac8e9056 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 8 Sep 2013 16:57:03 +0200 Subject: Remove ModuleManager::ModCount and GetCount() --- src/modmanager_dynamic.cpp | 3 --- src/modules.cpp | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/modmanager_dynamic.cpp b/src/modmanager_dynamic.cpp index 64d2bf69c..de9673996 100644 --- a/src/modmanager_dynamic.cpp +++ b/src/modmanager_dynamic.cpp @@ -108,7 +108,6 @@ bool ModuleManager::Load(const std::string& filename, bool defer) return false; } - this->ModCount++; if (defer) return true; @@ -188,8 +187,6 @@ void ModuleManager::Reload(Module* mod, HandlerBase1* callback) /* We must load the modules AFTER initializing the socket engine, now */ void ModuleManager::LoadAll() { - ModCount = 0; - std::cout << std::endl << "Loading core commands"; fflush(stdout); diff --git a/src/modules.cpp b/src/modules.cpp index b6a28193a..80d80cb43 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -162,7 +162,7 @@ ModResult Module::OnAcceptConnection(int, ListenSocket*, irc::sockets::sockadd void Module::OnSendWhoLine(User*, const std::vector&, User*, std::string&) { DetachEvent(I_OnSendWhoLine); } void Module::OnSetUserIP(LocalUser*) { DetachEvent(I_OnSetUserIP); } -ModuleManager::ModuleManager() : ModCount(0) +ModuleManager::ModuleManager() { } @@ -388,7 +388,6 @@ void ModuleManager::DoSafeUnload(Module* mod) ServerInstance->GlobalCulls.AddItem(mod); ServerInstance->Logs->Log("MODULE", LOG_DEFAULT, "Module %s unloaded",mod->ModuleSourceFile.c_str()); - this->ModCount--; ServerInstance->ISupport.Build(); } -- cgit v1.2.3