Remove unused variable cruft.

This commit is contained in:
Keith Buck 2012-03-25 02:37:41 +00:00
parent ae4ce45f2e
commit 2d537cae88
5 changed files with 1 additions and 16 deletions

View file

@ -398,7 +398,6 @@ ms_join(struct Client *client_p, struct Client *source_p, int parc, const char *
time_t newts;
int isnew;
int keep_our_modes = YES;
int keep_new_modes = YES;
rb_dlink_node *ptr, *next_ptr;
/* special case for join 0 */
@ -460,8 +459,6 @@ ms_join(struct Client *client_p, struct Client *source_p, int parc, const char *
keep_our_modes = NO;
chptr->channelts = newts;
}
else
keep_new_modes = NO;
/* Lost the TS, other side wins, so remove modes on this side */
if(!keep_our_modes)

View file

@ -168,7 +168,6 @@ ms_kill(struct Client *client_p, struct Client *source_p, int parc, const char *
const char *reason;
char default_reason[] = "<No reason given>";
const char *path;
int chasing = 0;
*buf = '\0';
@ -212,7 +211,6 @@ ms_kill(struct Client *client_p, struct Client *source_p, int parc, const char *
return 0;
}
sendto_one_notice(source_p, ":KILL changed from %s to %s", user, target_p->name);
chasing = 1;
}
if(IsServer(target_p) || IsMe(target_p))

View file

@ -485,13 +485,10 @@ ms_sid(struct Client *client_p, struct Client *source_p, int parc, const char *p
struct remote_conf *hub_p;
hook_data_client hdata;
rb_dlink_node *ptr;
int hop;
int hlined = 0;
int llined = 0;
char squitreason[160];
hop = atoi(parv[2]);
/* collision on the name? */
if((target_p = find_server(NULL, parv[1])) != NULL)
{

View file

@ -1165,7 +1165,6 @@ stats_memory (struct Client *source_p)
{
struct Client *target_p;
struct Channel *chptr;
struct Ban *actualBan;
rb_dlink_node *rb_dlink;
rb_dlink_node *ptr;
int channel_count = 0;
@ -1247,7 +1246,6 @@ stats_memory (struct Client *source_p)
RB_DLINK_FOREACH(rb_dlink, chptr->banlist.head)
{
actualBan = rb_dlink->data;
channel_bans++;
channel_ban_memory += sizeof(rb_dlink_node) + sizeof(struct Ban);
@ -1255,7 +1253,6 @@ stats_memory (struct Client *source_p)
RB_DLINK_FOREACH(rb_dlink, chptr->exceptlist.head)
{
actualBan = rb_dlink->data;
channel_except++;
channel_except_memory += (sizeof(rb_dlink_node) + sizeof(struct Ban));
@ -1263,7 +1260,6 @@ stats_memory (struct Client *source_p)
RB_DLINK_FOREACH(rb_dlink, chptr->invexlist.head)
{
actualBan = rb_dlink->data;
channel_invex++;
channel_invex_memory += (sizeof(rb_dlink_node) + sizeof(struct Ban));
@ -1271,7 +1267,6 @@ stats_memory (struct Client *source_p)
RB_DLINK_FOREACH(rb_dlink, chptr->quietlist.head)
{
actualBan = rb_dlink->data;
channel_quiets++;
channel_quiet_memory += (sizeof(rb_dlink_node) + sizeof(struct Ban));

View file

@ -83,12 +83,10 @@ static int
do_local_user(struct Client *client_p, struct Client *source_p,
const char *username, const char *realname)
{
struct User *user;
s_assert(NULL != source_p);
s_assert(source_p->username != username);
user = make_user(source_p);
make_user(source_p);
if (!(source_p->flags & FLAGS_SENTUSER))
{