From 7179e1112b8dcb23c1de57b168f308c3bca54928 Mon Sep 17 00:00:00 2001
From: John Esmet <esmet@tokutek.com>
Date: Wed, 17 Apr 2013 00:01:08 -0400
Subject: [PATCH] refs #5504 not used in production

git-svn-id: file:///svn/toku/tokudb@48085 c7de825b-a66e-492c-adef-691d508d4ae1
---
 ft/hashfun.h | 48 ------------------------------------------------
 1 file changed, 48 deletions(-)
 delete mode 100644 ft/hashfun.h

diff --git a/ft/hashfun.h b/ft/hashfun.h
deleted file mode 100644
index e7102e871e..0000000000
--- a/ft/hashfun.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
-// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
-#ifndef TOKU_HASHFUN_H
-#define TOKU_HASHFUN_H
-
-#ident "$Id$"
-#ident "Copyright (c) 2007-2012 Tokutek Inc.  All rights reserved."
-#ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it."
-
-
-// FNV Hash: From an idea sent by Glenn Fowler and Phong Vo to the IEEE POSIX 1003.2 committee.  Landon Curt Noll improved it.
-// See: http://isthe.com/chongo/tech/comp/fnv/
-static inline uint32_t hash_key_extend(uint32_t initial_hash,
-                                        const unsigned char *key,
-                                        size_t keylen) {
-    size_t i;
-    uint32_t hash = initial_hash;
-    for (i=0; i<keylen; i++, key++) {
-        hash *= 16777619;
-        // GCC 4.1.2 -O2 and -O3 translates the following shifts back into the multiply shown on the line above here.
-        // So much for optimizing this multiplication...
-        //hash += (hash<<1) + (hash<<4) + (hash<<7) + (hash<<8) + (hash<<24);
-        hash ^= *key;
-    }
-    return hash;
-}
-
-static inline uint32_t hash_key(const unsigned char *key, size_t keylen) {
-    return hash_key_extend(0, key, keylen);
-}
-
-#if 0
-static unsigned int hash_key (const char *key, ITEMLEN keylen) {
-    /* From Sedgewick.  There are probably better hash functions. */
-    unsigned int b    = 378551;
-    unsigned int a    = 63689;
-    unsigned int hash = 0;
-    ITEMLEN i;
-    for (i = 0; i < keylen; i++ ) {
-	hash = hash * a + key[i];
-	a *= b;
-    }
-    return hash;
-}
-#endif
-
-
-#endif
-- 
2.30.9