X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fhindex.c;h=260649bf846eb83eea97f8bc367466a89f22b698;hb=0ef165ecb57943e17a8ee8270df68ffb8d032e29;hp=fd4199ae1e55f42d46c3fea664a40c2778855dff;hpb=30cc7d2969aa5397328a49a7d85196a4afdc7f8b;p=sliver-openvswitch.git 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 *