Signed-off-by: Ben Pfaff <[email protected]>
---
 lib/hmap.c |   17 +----------------
 lib/hmap.h |    4 +---
 2 files changed, 2 insertions(+), 19 deletions(-)

diff --git a/lib/hmap.c b/lib/hmap.c
index ec1de67..97f11ec 100644
--- a/lib/hmap.c
+++ b/lib/hmap.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2009, 2010, 2012, 2013 Nicira, Inc.
+ * Copyright (c) 2008, 2009, 2010, 2012, 2013, 2014 Nicira, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -277,18 +277,3 @@ hmap_at_position(const struct hmap *hmap,
     *offsetp = 0;
     return NULL;
 }
-
-/* Returns true if 'node' is in 'hmap', false otherwise. */
-bool
-hmap_contains(const struct hmap *hmap, const struct hmap_node *node)
-{
-    struct hmap_node *p;
-
-    for (p = hmap_first_in_bucket(hmap, node->hash); p; p = p->next) {
-        if (p == node) {
-            return true;
-        }
-    }
-
-    return false;
-}
diff --git a/lib/hmap.h b/lib/hmap.h
index 76a73ac..3617266 100644
--- a/lib/hmap.h
+++ b/lib/hmap.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2009, 2010, 2012, 2013 Nicira, Inc.
+ * Copyright (c) 2008, 2009, 2010, 2012, 2013, 2014 Nicira, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -141,8 +141,6 @@ static inline struct hmap_node *hmap_first_in_bucket(const 
struct hmap *,
                                                      size_t hash);
 static inline struct hmap_node *hmap_next_in_bucket(const struct hmap_node *);
 
-bool hmap_contains(const struct hmap *, const struct hmap_node *);
-
 /* Iteration. */
 
 /* Iterates through every node in HMAP. */
-- 
1.7.10.4

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to