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
This commit is contained in:
@@ -278,8 +278,6 @@ SocketList *sa;
|
|||||||
void dcc_sdcc (char *name, char *args)
|
void dcc_sdcc (char *name, char *args)
|
||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
int tmp, i;
|
|
||||||
DCC_int *new_sdcc;
|
|
||||||
if (!my_stricmp(name, "schat") && (strlen(args) > 0)) {
|
if (!my_stricmp(name, "schat") && (strlen(args) > 0)) {
|
||||||
if (*args == ' ')
|
if (*args == ' ')
|
||||||
new_next_arg(args, &args);
|
new_next_arg(args, &args);
|
||||||
@@ -288,13 +286,7 @@ void dcc_sdcc (char *name, char *args)
|
|||||||
if (p && *p)
|
if (p && *p)
|
||||||
*p = 0;
|
*p = 0;
|
||||||
}
|
}
|
||||||
new_sdcc = dcc_create(args, "SCHAT", NULL, 0, 0, typenum, DCC_TWOCLIENTS, start_dcc_chat);
|
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 */;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user