summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-04 21:29:01 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-04 21:29:01 +0000
commitfe54be35fc7fa67b77d5a4860006f2bd7b58234e (patch)
tree71c08bee29deec2ad055542a9dd45bafdc2d691e
parent5c4b7d30038f68e5dbcde2637f95a8b1b3436257 (diff)
Remove debug junk from ModuleManager::SetPriority
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8530 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 5d52ff204..7eb97873f 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -241,13 +241,6 @@ bool ModuleManager::SetPriority(Module* mod, PriorityState s)
bool ModuleManager::SetPriority(Module* mod, Implementation i, PriorityState s, Module** modules, size_t sz)
{
- if (GetModuleName(mod) != "m_spanningtree.so")
- Instance->Log(DEBUG,"ModuleManager::SetPriority called by %s, priority state %s num_modules=%u", GetModuleName(mod).c_str(), s == PRIO_BEFORE ? "PRIO_BEFORE" :
- s == PRIO_AFTER ? "PRIO_AFTER" :
- s == PRIO_LAST ? "PRIO_LAST" :
- s == PRIO_FIRST ? "PRIO_FIRST" : "<unknown!>",
- sz);
-
/** To change the priority of a module, we first find its position in the vector,
* then we find the position of the other modules in the vector that this module
* wants to be before/after. We pick off either the first or last of these depending
@@ -278,20 +271,6 @@ bool ModuleManager::SetPriority(Module* mod, Implementation i, PriorityState s,
if (!found)
return false;
- Instance->Log(DEBUG,"ModuleManager::SetPriority: My position: %u", source);
-
- /* Debug stuff. We will probably comment this out some time */
- if (modules)
- {
- for (size_t n = 0; n < sz; ++n)
- {
- if (modules[n])
- Instance->Log(DEBUG," Listed Module: [%08x] %s", modules[n], GetModuleName(modules[n]).c_str());
- else
- Instance->Log(DEBUG," [null module]");
- }
- }
-
switch (s)
{
/* Dummy value */
@@ -350,19 +329,7 @@ bool ModuleManager::SetPriority(Module* mod, Implementation i, PriorityState s,
/* Do we need to swap? */
if (swap && (swap_pos != source))
- {
std::swap(EventHandlers[i][swap_pos], EventHandlers[i][source]);
- Instance->Log(DEBUG,"Swap locations %u and %u", swap_pos, source);
- }
- else
- Instance->Log(DEBUG,"No need to swap");
-
- /* Debug stuff. We wont need this some day soon (tm) */
- Instance->Log(DEBUG,"New ordering:");
- for (size_t x = 0; x != EventHandlers[i].size(); ++x)
- {
- Instance->Log(DEBUG," [%08x] %s", EventHandlers[i][x], GetModuleName(EventHandlers[i][x]).c_str());
- }
return true;
}