X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=blobdiff_plain;f=lib%2Fhindex.c;h=260649bf846eb83eea97f8bc367466a89f22b698;hp=fd4199ae1e55f42d46c3fea664a40c2778855dff;hb=3d91d9094dcf49c210bd4ebae4bd1e0cea9defce;hpb=28a560d97a8b6882e7dfd4df2e52806dba4fd0e5 diff --git a/lib/hindex.c b/lib/hindex.c index fd4199ae1..260649bf8 100644 --- a/lib/hindex.c +++ b/lib/hindex.c @@ -274,19 +274,6 @@ hindex_calc_mask(size_t capacity) return mask; } -/* Returns the head node in 'hindex' with the given 'hash', or a null pointer - * if no nodes have that hash value. */ -struct hindex_node * -hindex_node_with_hash(const struct hindex *hindex, size_t hash) -{ - struct hindex_node *node = hindex->buckets[hash & hindex->mask]; - - while (node && node->hash != hash) { - node = node->d; - } - return node; -} - /* Returns the head node in 'hindex' with the given 'hash'. 'hindex' must * contain a head node with the given hash. */ static struct hindex_node *