1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 04:46:37 +02:00

Remove unused moduleAddMessage/moduleDelMessage, move moduleCallBackRun() into ModuleManager::

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1695 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rburchell
2008-11-15 15:45:27 +00:00
parent 2145e97d70
commit 73f4cccf99
6 changed files with 30 additions and 99 deletions
-11
View File
@@ -77,11 +77,9 @@ Module::~Module()
int idx;
CommandHash *current = NULL;
MessageHash *mcurrent = NULL;
EvtHookHash *ehcurrent = NULL;
Command *c;
Message *msg;
EvtHook *eHook;
int status = 0;
@@ -151,15 +149,6 @@ Module::~Module()
}
}
for (mcurrent = IRCD[idx]; mcurrent; mcurrent = mcurrent->next) {
for (msg = mcurrent->m; msg; msg = msg->next) {
if ((msg->mod_name)
&& (stricmp(msg->mod_name, this->name.c_str()) == 0)) {
moduleDelMessage(msg->name);
}
}
}
for (ehcurrent = EVENTHOOKS[idx]; ehcurrent;
ehcurrent = ehcurrent->next) {
for (eHook = ehcurrent->evh; eHook; eHook = eHook->next) {