]> pd.if.org Git - nbds/blobdiff - map/hashtable.c
more header file refactoring
[nbds] / map / hashtable.c
index 3471af4db05410e5e6775f9e0d328be96587ecd6..17339415cc44cd0030ddba4f804a12a7d101494d 100644 (file)
@@ -16,7 +16,6 @@
 #include "common.h"
 #include "murmur.h"
 #include "mem.h"
 #include "common.h"
 #include "murmur.h"
 #include "mem.h"
-#include "mlocal.h"
 #include "hashtable.h"
 
 #define GET_PTR(x) ((void *)((x) & MASK(48))) // low-order 48 bits is a pointer to a nstring_t
 #include "hashtable.h"
 
 #define GET_PTR(x) ((void *)((x) & MASK(48))) // low-order 48 bits is a pointer to a nstring_t
@@ -42,13 +41,6 @@ struct ht {
     const datatype_t *key_type;
 };
 
     const datatype_t *key_type;
 };
 
-static const map_impl_t ht_map_impl = { 
-    (map_alloc_t)ht_alloc, (map_cas_t)ht_cas, (map_get_t)ht_get, (map_remove_t)ht_remove, 
-    (map_count_t)ht_count, (map_print_t)ht_print, (map_free_t)ht_free
-};
-
-const map_impl_t *MAP_TYPE_HASHTABLE = &ht_map_impl;
-
 static const uint64_t COPIED_VALUE           = -1;
 static const uint64_t TOMBSTONE              = STRIP_TAG(-1);
 
 static const uint64_t COPIED_VALUE           = -1;
 static const uint64_t TOMBSTONE              = STRIP_TAG(-1);