aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_domain_classify.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2023-08-31 09:14:17 +0200
committerLuca Deri <deri@ntop.org>2023-08-31 09:14:17 +0200
commit16b0ce37100242b6cbaafe65d05ee4940b5aab3f (patch)
tree3275f107daeb62c09da6b2409db01aa381a49b27 /src/lib/ndpi_domain_classify.c
parentf82493966286e4ec88f909baa5b5066df12f73e6 (diff)
Code cleanup
Diffstat (limited to 'src/lib/ndpi_domain_classify.c')
-rw-r--r--src/lib/ndpi_domain_classify.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/lib/ndpi_domain_classify.c b/src/lib/ndpi_domain_classify.c
index 8b66c940e..df82cdabb 100644
--- a/src/lib/ndpi_domain_classify.c
+++ b/src/lib/ndpi_domain_classify.c
@@ -103,29 +103,6 @@ static u_int32_t ndpi_domain_search_size(ndpi_domain_search *search) {
/* ********************************************************** */
-/*
- https://en.wikipedia.org/wiki/Jenkins_hash_function
-
- See also http://burtleburtle.net/bob/hash/spooky.html
-*/
-static inline u_int32_t ndpi_hash_string(char *domain) {
- u_int32_t hash, i;
-
- for(hash = i = 0; domain[i] != '\0'; ++i) {
- hash += domain[i];
- hash += (hash << 10);
- hash ^= (hash >> 6);
- }
-
- hash += (hash << 3);
- hash ^= (hash >> 11);
- hash += (hash << 15);
-
- return(hash);
-}
-
-/* ********************************************************** */
-
/* NOTE: domain will be modified: copy it if necessary */
static bool ndpi_domain_search_add(ndpi_domain_search *search, char *domain) {
char *elem;