summaryrefslogtreecommitdiff
path: root/src/module.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/module.cpp')
-rw-r--r--src/module.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/module.cpp b/src/module.cpp
index 18b22180e..f20404467 100644
--- a/src/module.cpp
+++ b/src/module.cpp
@@ -78,12 +78,10 @@ Module::~Module()
int idx;
CommandHash *current = NULL;
MessageHash *mcurrent = NULL;
- EvtMessageHash *ecurrent = NULL;
EvtHookHash *ehcurrent = NULL;
Command *c;
Message *msg;
- EvtMessage *eMsg;
EvtHook *eHook;
int status = 0;
@@ -162,14 +160,6 @@ Module::~Module()
}
}
- for (ecurrent = EVENT[idx]; ecurrent; ecurrent = ecurrent->next) {
- for (eMsg = ecurrent->evm; eMsg; eMsg = eMsg->next) {
- if ((eMsg->mod_name)
- && (stricmp(eMsg->mod_name, this->name.c_str()) == 0)) {
- status = delEventHandler(EVENT, eMsg, this->name.c_str());
- }
- }
- }
for (ehcurrent = EVENTHOOKS[idx]; ehcurrent;
ehcurrent = ehcurrent->next) {
for (eHook = ehcurrent->evh; eHook; eHook = eHook->next) {