mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
virCapabilitiesFreeMachines: Remove unused function
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
74998ed662
commit
b4cd07cc70
@ -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
|
||||
|
@ -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);
|
||||
|
@ -64,7 +64,6 @@ virCapabilitiesDomainDataLookup;
|
||||
virCapabilitiesDomainSupported;
|
||||
virCapabilitiesFormatXML;
|
||||
virCapabilitiesFreeGuest;
|
||||
virCapabilitiesFreeMachines;
|
||||
virCapabilitiesGetNodeInfo;
|
||||
virCapabilitiesHostInitIOMMU;
|
||||
virCapabilitiesHostNUMAAddCell;
|
||||
|
Loading…
x
Reference in New Issue
Block a user