From 999c42bad813dd4d0d2009c053bd53301dc43bc8 Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Wed, 6 Apr 2016 11:47:13 -0500 Subject: [PATCH] Remove useless alias_entry hits member --- include/s_conf.h | 1 - ircd/newconf.c | 1 - modules/m_alias.c | 3 --- 3 files changed, 5 deletions(-) diff --git a/include/s_conf.h b/include/s_conf.h index 557be9474..7ffa47085 100644 --- a/include/s_conf.h +++ b/include/s_conf.h @@ -312,7 +312,6 @@ struct alias_entry char *name; char *target; int flags; /* reserved for later use */ - int hits; }; /* All variables are GLOBAL */ diff --git a/ircd/newconf.c b/ircd/newconf.c index d1585c1cf..79c76bacc 100644 --- a/ircd/newconf.c +++ b/ircd/newconf.c @@ -1763,7 +1763,6 @@ conf_begin_alias(struct TopConf *tc) yy_alias->name = rb_strdup(conf_cur_block_name); yy_alias->flags = 0; - yy_alias->hits = 0; return 0; } diff --git a/modules/m_alias.c b/modules/m_alias.c index 9fe7abc78..3879a8146 100644 --- a/modules/m_alias.c +++ b/modules/m_alias.c @@ -161,9 +161,6 @@ m_alias(struct MsgBuf *msgbuf, struct Client *client_p, struct Client *source_p, return; } - /* increment the hitcounter on this alias */ - aptr->hits++; - sendto_one(target_p, ":%s PRIVMSG %s :%s", get_id(client_p, target_p), p != NULL ? aptr->target : get_id(target_p, target_p),