remove unused variables in irc/dcc

This commit is contained in:
Max DeLiso 2015-09-12 21:43:54 +00:00
commit 311523f913
2 changed files with 4 additions and 9 deletions

View file

@ -771,16 +771,15 @@ static void event_nick(IRC_SERVER_REC *server, const char *data,
{
QUERY_REC *query;
CHAT_DCC_REC *dcc;
char *params, *nick, *tag;
char *nick, *tag;
g_return_if_fail(data != NULL);
g_return_if_fail(orignick != NULL);
params = event_get_params(data, 1, &nick);
event_get_params(data, 1, &nick);
if (g_ascii_strcasecmp(nick, orignick) == 0) {
/* shouldn't happen, but just to be sure irssi doesn't
get into infinite loop */
g_free(params);
return;
}
@ -803,8 +802,6 @@ static void event_nick(IRC_SERVER_REC *server, const char *data,
g_free(tag);
}
}
g_free(params);
}
void dcc_chat_init(void)

View file

@ -466,12 +466,12 @@ static int dcc_timeout_func(void)
static void event_no_such_nick(IRC_SERVER_REC *server, char *data)
{
char *params, *nick;
char *nick;
GSList *tmp, *next;
g_return_if_fail(data != NULL);
params = event_get_params(data, 2, NULL, &nick);
event_get_params(data, 2, NULL, &nick);
/* check if we've send any dcc requests to this nick.. */
for (tmp = dcc_conns; tmp != NULL; tmp = next) {
@ -482,8 +482,6 @@ static void event_no_such_nick(IRC_SERVER_REC *server, char *data)
dcc->nick != NULL && g_ascii_strcasecmp(dcc->nick, nick) == 0)
dcc_close(dcc);
}
g_free(params);
}
/* SYNTAX: DCC CLOSE <type> <nick> [<file>] */