From 0e099fe064769d409107c57625d139caaed2b4f4 Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Mon, 8 Jul 2013 04:42:46 +0000 Subject: [PATCH] Kill unused code in dcc_sdcc() and eliminate an unused pointer value warning from Coverity. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@260 13b04d17-f746-0410-82c6-800466cd88b0 --- dll/arcfour/arcfour.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dll/arcfour/arcfour.c b/dll/arcfour/arcfour.c index 8f07371..81c12f0 100644 --- a/dll/arcfour/arcfour.c +++ b/dll/arcfour/arcfour.c @@ -278,8 +278,6 @@ SocketList *sa; void dcc_sdcc (char *name, char *args) { char *p; - int tmp, i; - DCC_int *new_sdcc; if (!my_stricmp(name, "schat") && (strlen(args) > 0)) { if (*args == ' ') new_next_arg(args, &args); @@ -288,13 +286,7 @@ void dcc_sdcc (char *name, char *args) if (p && *p) *p = 0; } - new_sdcc = dcc_create(args, "SCHAT", NULL, 0, 0, typenum, DCC_TWOCLIENTS, start_dcc_chat); -/* find_dcc_pending(new_sdcc->user, new_sdcc->filename, NULL, typenum, 1, -1); */ -/* new_i = find_dcc_pending(nick, filename, NULL, type, 1, -1); */ - tmp = sizeof(keyboxes)/sizeof(arclist *); - for (i = 0; i < tmp; i++) - if (!keyboxes[i]) -/* keyboxes[i]->sock = new_i->sock */; + dcc_create(args, "SCHAT", NULL, 0, 0, typenum, DCC_TWOCLIENTS, start_dcc_chat); } }