From 09092155a66388bbd7be8d16debb35abfcfae700 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 8 Aug 2010 16:38:42 +0200 Subject: Remove unused code. --- src/hashtab.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/hashtab.c') diff --git a/src/hashtab.c b/src/hashtab.c index e0d3e1a081..8b53aa4018 100644 --- a/src/hashtab.c +++ b/src/hashtab.c @@ -492,25 +492,10 @@ hash_hash(key) want to crash if we get one. */ p = key + 1; -#if 0 - /* ElfHash algorithm, which is supposed to have an even distribution. - * Suggested by Charles Campbell. */ - hash_T g; - - while (*p != NUL) - { - hash = (hash << 4) + *p++; /* clear low 4 bits of hash, add char */ - g = hash & 0xf0000000L; /* g has high 4 bits of hash only */ - if (g != 0) - hash ^= g >> 24; /* xor g's high 4 bits into hash */ - } -#else - /* A simplistic algorithm that appears to do very well. * Suggested by George Reilly. */ while (*p != NUL) hash = hash * 101 + *p++; -#endif return hash; } -- cgit v1.2.3