From e9f0d740e3a88ace378da84896829ab815055929 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Wed, 26 Jul 2017 12:10:17 +0100 Subject: [PATCH] msgbuf: remove unused field parselen --- include/msgbuf.h | 1 - ircd/parse.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/include/msgbuf.h b/include/msgbuf.h index 3d76d82c..ed7a04ad 100644 --- a/include/msgbuf.h +++ b/include/msgbuf.h @@ -39,7 +39,6 @@ struct MsgBuf { const char *target; /* the target of the message (either NULL, or custom defined) */ const char *cmd; /* the cmd/verb of the message (either NULL, or para[0]) */ - size_t parselen; /* the length of the message */ size_t n_para; /* the number of parameters (always at least 1 if a full message) */ const char *para[MAXPARA]; /* parameters vector (starting with cmd as para[0]) */ }; diff --git a/ircd/parse.c b/ircd/parse.c index d6f83b43..bed65f19 100644 --- a/ircd/parse.c +++ b/ircd/parse.c @@ -144,8 +144,6 @@ parse(struct Client *client_p, char *pbuffer, char *bufend) ServerStats.is_unco++; return; } - - mptr->bytes += msgbuf.parselen; } if(mptr == NULL)