diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/hashmap.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/common/hashmap.cpp b/common/hashmap.cpp index fe95d4dc45..9e3ca2292a 100644 --- a/common/hashmap.cpp +++ b/common/hashmap.cpp @@ -57,21 +57,16 @@ namespace Common { uint hashit(const char *p) { uint hash = 0; byte c; - - hash = 0; while ((c = *p++)) hash = (hash * 31 + c); - return hash; } uint hashit_lower(const char *p) { uint hash = 0; byte c; - while ((c = *p++)) hash = (hash * 31 + tolower(c)); - return hash; } |