From dea26d0c1ce95cd85a8f4e887a4c8524720056b2 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Sat, 9 May 2015 00:01:07 +1000 Subject: [PATCH] Remove unused variables in check_bitch_mode() and parse_server() --- source/parse.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/source/parse.c b/source/parse.c index 8a16bb7..8614224 100644 --- a/source/parse.c +++ b/source/parse.c @@ -1464,11 +1464,9 @@ int found = 0; static void check_bitch_mode(char *from, char *uh, char *channel, char *line, ChannelList *chan) { -NickList *nick; -char *new_mode = NULL; -char *n = NULL; -time_t right_now; - + NickList *nick; + char *new_mode = NULL; + char *n = NULL; if (!from || !chan || (chan && (!get_cset_int_var(chan->csets, BITCH_CSET) || !chan->have_op))) return; @@ -1485,7 +1483,6 @@ time_t right_now; char type_mode = '%' , *this_nick, *list_nicks; int found = 0; list_nicks = LOCAL_COPY(n); - right_now = now; for (p = new_mode; *p; p++) { switch(*p) @@ -1931,7 +1928,6 @@ void parse_server(char *orig_line) #ifdef WANT_DLL RawDll *raw = NULL; #endif - protocol_command *retval; int loc; int cnt; @@ -2028,8 +2024,7 @@ void parse_server(char *orig_line) numbered_command(from, numeric, ArgList); else { - retval = (protocol_command *)find_fixed_array_item( - (void *)rfc1459, sizeof(protocol_command), + find_fixed_array_item((void *)rfc1459, sizeof(protocol_command), num_protocol_cmds + 1, comm, &cnt, &loc); if (cnt < 0 && rfc1459[loc].inbound_handler)