summaryrefslogtreecommitdiff
path: root/src/module.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/module.cpp')
-rw-r--r--src/module.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/module.cpp b/src/module.cpp
index af002d94e..e080ac868 100644
--- a/src/module.cpp
+++ b/src/module.cpp
@@ -69,10 +69,8 @@ Module::~Module()
int idx;
CommandHash *current = NULL;
- EvtHookHash *ehcurrent = NULL;
Command *c;
- EvtHook *eHook;
int status = 0;
/* Kill any active callbacks this module has */
@@ -129,16 +127,6 @@ Module::~Module()
}
}
}
-
- for (ehcurrent = EVENTHOOKS[idx]; ehcurrent;
- ehcurrent = ehcurrent->next) {
- for (eHook = ehcurrent->evh; eHook; eHook = eHook->next) {
- if ((eHook->mod_name)
- && (stricmp(eHook->mod_name, this->name.c_str()) == 0)) {
- status = delEventHook(EVENTHOOKS, eHook, this->name.c_str());
- }
- }
- }
}
int index = 0;