With the recent changes, virQEMUCapsGetDefaultEmulator() has
become a trivial wrapper around this function, as well as its
only caller. Clean up the situation by merging the two.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
src/qemu/qemu_capabilities.c | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index 41e9a3a3f5..25d029d0cc 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -915,9 +915,9 @@ virQEMUCapsFindBinary(const char *format,
return ret;
}
-static char *
-virQEMUCapsFindBinaryForArch(virArch hostarch,
- virArch guestarch)
+char *
+virQEMUCapsGetDefaultEmulator(virArch hostarch,
+ virArch guestarch)
{
char *binary;
const char *archstr;
@@ -956,14 +956,6 @@ virQEMUCapsFindBinaryForArch(virArch hostarch,
}
-char *
-virQEMUCapsGetDefaultEmulator(virArch hostarch,
- virArch guestarch)
-{
- return virQEMUCapsFindBinaryForArch(hostarch, guestarch);
-}
-
-
static int
virQEMUCapsInitGuest(virCaps *caps,
virFileCache *cache,
--
2.35.1