Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/conf/capabilities.c | 19 -------------------
src/conf/capabilities.h | 3 ---
src/libvirt_private.syms | 1 -
3 files changed, 23 deletions(-)
diff --git a/src/conf/capabilities.c b/src/conf/capabilities.c
index 6d2f6e282d..c1d5d6cd6e 100644
--- a/src/conf/capabilities.c
+++ b/src/conf/capabilities.c
@@ -404,25 +404,6 @@ virCapabilitiesAllocMachines(const char *const *names,
return machines;
}
-/**
- * virCapabilitiesFreeMachines:
- * @machines: table of vircapsGuestMachinePtr
- *
- * Free a table of virCapsGuestMachine *
- */
-void
-virCapabilitiesFreeMachines(virCapsGuestMachine **machines,
- int nmachines)
-{
- size_t i;
- if (!machines)
- return;
- for (i = 0; i < nmachines && machines[i]; i++) {
- g_clear_pointer(&machines[i], virCapabilitiesFreeGuestMachine);
- }
- g_free(machines);
-}
-
/**
* virCapabilitiesAddGuest:
* @caps: capabilities to extend
diff --git a/src/conf/capabilities.h b/src/conf/capabilities.h
index 07f7a3ef58..c78e3e52fa 100644
--- a/src/conf/capabilities.h
+++ b/src/conf/capabilities.h
@@ -262,9 +262,6 @@ virCapabilitiesHostNUMAAddCell(virCapsHostNUMA *caps,
virCapsGuestMachine **
virCapabilitiesAllocMachines(const char *const *names,
int *nnames);
-void
-virCapabilitiesFreeMachines(virCapsGuestMachine **machines,
- int nmachines);
void
virCapabilitiesFreeGuest(virCapsGuest *guest);
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 87c3bab64f..37fc6d8b5c 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -64,7 +64,6 @@ virCapabilitiesDomainDataLookup;
virCapabilitiesDomainSupported;
virCapabilitiesFormatXML;
virCapabilitiesFreeGuest;
-virCapabilitiesFreeMachines;
virCapabilitiesGetNodeInfo;
virCapabilitiesHostInitIOMMU;
virCapabilitiesHostNUMAAddCell;
--
2.39.2