summaryrefslogtreecommitdiff
path: root/src/qhash.cc
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2011-11-21 23:35:13 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2011-11-21 23:35:13 (GMT)
commit4843022bf4755d7fafe58faee430a6f62f51ca8f (patch)
tree34ce84fbfdbfb720b4aae4ae575f296341bbccab /src/qhash.cc
parente31bb0f60312e692f5ef57fd3823e413cc8a669c (diff)
parentb211fe5158160910c73397bc401fb846c45a7295 (diff)
Merge remote branch 'upstream/master' into cakebaby
Diffstat (limited to 'src/qhash.cc')
-rw-r--r--src/qhash.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/qhash.cc b/src/qhash.cc
deleted file mode 100644
index cec9adf..0000000
--- a/src/qhash.cc
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "myqhash.h"
-
-static uint hash(const uchar *p, int n)
-{
- uint h = 0;
- uint g;
-
- while (n--) {
- h = (h << 4) + *p++;
- if ((g = (h & 0xf0000000)) != 0)
- h ^= g >> 23;
- h &= ~g;
- }
- return h;
-}
-
-uint qHash(const std::string &str) {
- return hash(reinterpret_cast<const uchar *>(str.c_str()), str.length());
-}
contact: Jan Huwald // Impressum