All callers pass NULL/0.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/qemu/qemu_command.c | 9 ---------
src/qemu/qemu_command.h | 2 --
src/qemu/qemu_hotplug.c | 1 -
3 files changed, 12 deletions(-)
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index a3b4b8c412..92b91b0a52 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -4187,8 +4187,6 @@ qemuBuildNicDevProps(virDomainDef *def,
virJSONValue *
qemuBuildHostNetProps(virDomainNetDef *net,
- char **tapfd,
- size_t tapfdSize,
const char *slirpfd)
{
virDomainNetType netType = virDomainNetGetActualType(net);
@@ -4232,12 +4230,6 @@ qemuBuildHostNetProps(virDomainNetDef *net,
if (nfds > 1)
tapfd_field = "s:fds";
- } else {
- for (i = 0; i < tapfdSize; i++)
- virBufferAsprintf(&buf, "%s:", tapfd[i]);
-
- if (tapfdSize > 1)
- tapfd_field = "s:fds";
}
virBufferTrim(&buf, ":");
@@ -8920,7 +8912,6 @@ qemuBuildInterfaceCommandLine(virQEMUDriver *driver,
return -1;
if (!(hostnetprops = qemuBuildHostNetProps(net,
- NULL, 0,
slirpfdName)))
goto cleanup;
diff --git a/src/qemu/qemu_command.h b/src/qemu/qemu_command.h
index 5a65d94d6f..9bb63d9598 100644
--- a/src/qemu/qemu_command.h
+++ b/src/qemu/qemu_command.h
@@ -87,8 +87,6 @@ qemuBuildChannelGuestfwdNetdevProps(virDomainChrDef *chr);
virJSONValue *
qemuBuildHostNetProps(virDomainNetDef *net,
- char **tapfd,
- size_t tapfdSize,
const char *slirpfd);
int
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index c3891ddca7..9f71977a4d 100644
--- a/src/qemu/qemu_hotplug.c
+++ b/src/qemu/qemu_hotplug.c
@@ -1380,7 +1380,6 @@ qemuDomainAttachNetDevice(virQEMUDriver *driver,
goto cleanup;
if (!(netprops = qemuBuildHostNetProps(net,
- NULL, 0,
slirpfdName)))
goto cleanup;
--
2.35.1