From: Ben Pfaff Date: Wed, 13 Mar 2013 22:35:33 +0000 (-0700) Subject: netdev: Remove netdev_is_open(), which has no users. X-Git-Tag: sliver-openvswitch-1.10.90-1~10^2~6 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c86073a000bece35808c572a3f9313c44097aa1c;hp=7e3dfa3bc7770d1205bc1af15e688affb9303f26;p=sliver-openvswitch.git netdev: Remove netdev_is_open(), which has no users. Signed-off-by: Ben Pfaff Acked-by: Ethan Jackson --- diff --git a/lib/netdev.c b/lib/netdev.c index 77080ea76..156984ad1 100644 --- a/lib/netdev.c +++ b/lib/netdev.c @@ -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 diff --git a/lib/netdev.h b/lib/netdev.h index 425942ffe..aab9de097 100644 --- a/lib/netdev.h +++ b/lib/netdev.h @@ -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. */