X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=map%2Fhashtable.c;h=17339415cc44cd0030ddba4f804a12a7d101494d;hp=3471af4db05410e5e6775f9e0d328be96587ecd6;hb=9d72edf41ce3a2ddbbe2d44afc23ef5ec53339c3;hpb=d26bac75802a324ed98c8d3d88cfb9eb87b3b35a diff --git a/map/hashtable.c b/map/hashtable.c index 3471af4..1733941 100644 --- a/map/hashtable.c +++ b/map/hashtable.c @@ -16,7 +16,6 @@ #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 @@ -42,13 +41,6 @@ struct ht { 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);