mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
lib/qemu.c: Remove int_qemu_supports function
This function, which grepped the qemu -help output to see if a command line option was supported, is no longer used and can be removed.
This commit is contained in:
committed by
rwmjones
parent
fc243a36bd
commit
5df7da7e81
@@ -794,7 +794,6 @@ void guestfs_int_init_libvirt_backend (void) __attribute__((constructor));
|
||||
struct qemu_data;
|
||||
extern struct qemu_data *guestfs_int_test_qemu (guestfs_h *g);
|
||||
extern struct version guestfs_int_qemu_version (guestfs_h *g, struct qemu_data *);
|
||||
extern int guestfs_int_qemu_supports (guestfs_h *g, const struct qemu_data *, const char *option);
|
||||
extern int guestfs_int_qemu_supports_device (guestfs_h *g, const struct qemu_data *, const char *device_name);
|
||||
extern bool guestfs_int_platform_has_kvm (guestfs_h *g, const struct qemu_data *data);
|
||||
extern char *guestfs_int_drive_source_qemu_param (guestfs_h *g, const struct drive_source *src);
|
||||
|
||||
11
lib/qemu.c
11
lib/qemu.c
@@ -588,17 +588,6 @@ guestfs_int_qemu_version (guestfs_h *g, struct qemu_data *data)
|
||||
return data->qemu_version;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test if option is supported by qemu command line (just by grepping
|
||||
* the help text).
|
||||
*/
|
||||
int
|
||||
guestfs_int_qemu_supports (guestfs_h *g, const struct qemu_data *data,
|
||||
const char *option)
|
||||
{
|
||||
return strstr (data->qemu_help, option) != NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test if device is supported by qemu (currently just greps the
|
||||
* C<qemu -device ?> output).
|
||||
|
||||
Reference in New Issue
Block a user