diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-04-15 09:09:09 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-04-15 09:09:09 +0000 |
commit | 9acb4d06a759c067c846b8fd29f825556667dbf9 (patch) | |
tree | f3e5c0fa2568c5c549ece8a30d2df562c9276bd1 /modules | |
parent | 186e3840dc0e313bf4bd2f91555a2dc5b7649ef6 (diff) |
- Minor cleanups to hash.c; removed now unused functions, style cleanups
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1826 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-rw-r--r-- | modules/m_hash.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/modules/m_hash.c b/modules/m_hash.c index ddf7d51..1c1b4a8 100644 --- a/modules/m_hash.c +++ b/modules/m_hash.c @@ -48,7 +48,6 @@ mo_hash(struct Client *client_p, struct Client *source_p, struct Client *icl; struct Channel *ch; struct UserHost *ush; - struct MaskItem *rch; for (i = 0; i < HASHSIZE; ++i) { @@ -98,29 +97,6 @@ mo_hash(struct Client *client_p, struct Client *source_p, for (i = 0; i < HASHSIZE; ++i) { - if ((rch = hash_get_bucket(HASH_TYPE_RESERVED, i)) != NULL) - { - int len = 0; - - ++buckets; - for (; rch != NULL; rch = rch->hnext) - ++len; - if (len > max_chain) - max_chain = len; - count += len; - } - } - - sendto_one(source_p, ":%s NOTICE %s :Resv: entries: %d buckets: %d " - "max chain: %d", me.name, source_p->name, count, buckets, - max_chain); - - count = 0; - buckets = 0; - max_chain = 0; - - for (i = 0; i < HASHSIZE; ++i) - { if ((icl = hash_get_bucket(HASH_TYPE_ID, i)) != NULL) { int len = 0; |