Remove unused variables in check_bitch_mode() and parse_server()

This commit is contained in:
Kevin Easton
2015-05-09 00:01:07 +10:00
parent 32659b9998
commit dea26d0c1c

View File

@@ -1464,11 +1464,9 @@ int found = 0;
static void check_bitch_mode(char *from, char *uh, char *channel, char *line, ChannelList *chan) static void check_bitch_mode(char *from, char *uh, char *channel, char *line, ChannelList *chan)
{ {
NickList *nick; NickList *nick;
char *new_mode = NULL; char *new_mode = NULL;
char *n = NULL; char *n = NULL;
time_t right_now;
if (!from || !chan || (chan && (!get_cset_int_var(chan->csets, BITCH_CSET) || !chan->have_op))) if (!from || !chan || (chan && (!get_cset_int_var(chan->csets, BITCH_CSET) || !chan->have_op)))
return; return;
@@ -1485,7 +1483,6 @@ time_t right_now;
char type_mode = '%' , *this_nick, *list_nicks; char type_mode = '%' , *this_nick, *list_nicks;
int found = 0; int found = 0;
list_nicks = LOCAL_COPY(n); list_nicks = LOCAL_COPY(n);
right_now = now;
for (p = new_mode; *p; p++) for (p = new_mode; *p; p++)
{ {
switch(*p) switch(*p)
@@ -1931,7 +1928,6 @@ void parse_server(char *orig_line)
#ifdef WANT_DLL #ifdef WANT_DLL
RawDll *raw = NULL; RawDll *raw = NULL;
#endif #endif
protocol_command *retval;
int loc; int loc;
int cnt; int cnt;
@@ -2028,8 +2024,7 @@ void parse_server(char *orig_line)
numbered_command(from, numeric, ArgList); numbered_command(from, numeric, ArgList);
else else
{ {
retval = (protocol_command *)find_fixed_array_item( find_fixed_array_item((void *)rfc1459, sizeof(protocol_command),
(void *)rfc1459, sizeof(protocol_command),
num_protocol_cmds + 1, comm, &cnt, &loc); num_protocol_cmds + 1, comm, &cnt, &loc);
if (cnt < 0 && rfc1459[loc].inbound_handler) if (cnt < 0 && rfc1459[loc].inbound_handler)