tools/xenstat: Remove usused NetBSD code

remove PROCNETDEV_HEADER[] and read_attributes_vbd(), gcc complains that they
are unused

Signed-off-by: Manuel Bouyer <bouyer@netbsd.org>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
This commit is contained in:
Manuel Bouyer authored and Andrew Cooper committed 2021-01-18 18:58:20 +00:00
1 parent 8e4f3b6cd6
commit 4d0fbc2de5
1 file changed
-11
-11
View File
@@ -55,11 +55,6 @@ get_priv_data(xenstat_handle *handle)
}
/* Expected format of /proc/net/dev */
static const char PROCNETDEV_HEADER[] =
"Inter-| Receive |"
" Transmit\n"
" face |bytes packets errs drop fifo frame compressed multicast|"
"bytes packets errs drop fifo colls carrier compressed\n";
/* Collect information about networks */
int xenstat_collect_networks(xenstat_node * node)
@@ -76,12 +71,6 @@ void xenstat_uninit_networks(xenstat_handle * handle)
fclose(priv->procnetdev);
}
static int read_attributes_vbd(const char *vbd_directory, const char *what, char *ret, int cap)
{
/* XXX implement */
return 0;
}
/* Collect information about VBDs */
int xenstat_collect_vbds(xenstat_node * node)
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.