mirror of
https://github.com/anope/anope.git
synced 2026-06-30 06:16:38 +02:00
Remove moduleDataDebug().. debuggers are much more efficient at outputting crap than code is.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1610 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -422,7 +422,6 @@ MDE int moduleAddData(ModuleData **md, const char *key, char *value); /* Set th
|
||||
MDE void moduleDelData(ModuleData **md, const char *key); /* Delete this key/value pair */
|
||||
MDE void moduleDelAllData(ModuleData **md); /* Delete all key/value pairs for this module for this struct */
|
||||
void moduleDelAllDataMod(Module *m); /* remove all module data from all structs for this module */
|
||||
int moduleDataDebug(ModuleData **md); /* Allow for debug output of a moduleData struct */
|
||||
MDE bool moduleMinVersion(int major,int minor,int patch,int build); /* Checks if the current version of anope is before or after a given verison */
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
@@ -1879,25 +1879,6 @@ void moduleDisplayHelp(int service, User * u)
|
||||
mod_current_module_name = calling_module_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Output module data information into the log file.
|
||||
* This is a vwey "debug only" function to dump the whole contents
|
||||
* of a moduleData struct into the log files.
|
||||
* @param md The module data for the struct to be used
|
||||
* @return 0 is always returned;
|
||||
**/
|
||||
int moduleDataDebug(ModuleData ** md)
|
||||
{
|
||||
ModuleData *current = NULL;
|
||||
alog("Dumping module data....");
|
||||
for (current = *md; current; current = current->next) {
|
||||
alog("Module: [%s]", current->moduleName);
|
||||
alog(" Key [%s]\tValue [%s]", current->key, current->value);
|
||||
}
|
||||
alog("End of module data dump");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add module data to a struct.
|
||||
* This allows module coders to add data to an existing struct
|
||||
@@ -1934,9 +1915,6 @@ int moduleAddData(ModuleData ** md, const char *key, char *value)
|
||||
newData->next = *md;
|
||||
*md = newData;
|
||||
|
||||
if (debug) {
|
||||
moduleDataDebug(md);
|
||||
}
|
||||
return MOD_ERR_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user