From: Paul Date: Sun, 28 Jul 2013 21:35:48 +0000 (+0100) Subject: PATRICIA: remove unused (old debug) FILE handle X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/abebd5ac96796c9d40509248b316577193fcc680 PATRICIA: remove unused (old debug) FILE handle --- diff --git a/patricia/patricia_commands.c b/patricia/patricia_commands.c index 427349b5..a3322ed2 100644 --- a/patricia/patricia_commands.c +++ b/patricia/patricia_commands.c @@ -17,13 +17,10 @@ MODULE_VERSION("") -FILE* dumpip_logfp; int nc_cmd_dumptree(void *source, int cargc, char **cargv); int nc_cmd_usercount(void *source, int cargc, char **cargv); void _init() { - if (!(dumpip_logfp = fopen("log/iplist", "w"))) - Error("dumpip", ERR_ERROR, "Failed to open log file!"); registercontrolhelpcmd("dumptree", NO_DEVELOPER, 2, &nc_cmd_dumptree, "Dumps diaganostic information on the patricia trie structure\n" "Usage: dumptree [int]\n" @@ -43,8 +40,6 @@ void _init() { } void _fini() { - if (dumpip_logfp) - fclose(dumpip_logfp); deregistercontrolcmd("dumptree", &nc_cmd_dumptree); deregistercontrolcmd("usercount", &nc_cmd_usercount); }