netdev: Remove netdev_is_open(), which has no users.
authorBen Pfaff <blp@nicira.com>
Wed, 13 Mar 2013 22:35:33 +0000 (15:35 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 1 Apr 2013 22:49:32 +0000 (15:49 -0700)
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/netdev.c
lib/netdev.h

index 77080ea..156984a 100644 (file)
@@ -320,14 +320,6 @@ netdev_close(struct netdev *netdev)
     }
 }
 
-/* Returns true if a network device named 'name' is currently opened,
- * otherwise false. */
-bool
-netdev_is_open(const char *name)
-{
-    return !!shash_find_data(&netdev_dev_shash, name);
-}
-
 /* Parses 'netdev_name_', which is of the form [type@]name into its component
  * pieces.  'name' and 'type' must be freed by the caller. */
 void
index 425942f..aab9de0 100644 (file)
@@ -114,8 +114,6 @@ void netdev_enumerate_types(struct sset *types);
 int netdev_open(const char *name, const char *type, struct netdev **);
 void netdev_close(struct netdev *);
 
-bool netdev_is_open(const char *name);
-
 void netdev_parse_name(const char *netdev_name, char **name, char **type);
 
 /* Options. */