device-conf: removed unneeded virDomainDeviceInfoCopy()

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Marc-André Lureau 2019-06-05 12:30:59 +02:00 committed by Ján Tomko
parent 04c7fc0809
commit caa4f0dd82
3 changed files with 0 additions and 24 deletions

View File

@ -86,27 +86,6 @@ virZPCIDeviceAddressParseXML(xmlNodePtr node,
return ret;
}
int
virDomainDeviceInfoCopy(virDomainDeviceInfoPtr dst,
virDomainDeviceInfoPtr src)
{
/* Assume that dst is already cleared */
/* first a shallow copy of *everything* */
*dst = *src;
/* then copy whatever's left */
dst->alias = NULL;
dst->romfile = NULL;
dst->loadparm = NULL;
if (VIR_STRDUP(dst->alias, src->alias) < 0 ||
VIR_STRDUP(dst->romfile, src->romfile) < 0 ||
VIR_STRDUP(dst->loadparm, src->loadparm) < 0)
return -1;
return 0;
}
void
virDomainDeviceInfoClear(virDomainDeviceInfoPtr info)
{

View File

@ -181,8 +181,6 @@ struct _virDomainDeviceInfo {
bool isolationGroupLocked;
};
int virDomainDeviceInfoCopy(virDomainDeviceInfoPtr dst,
virDomainDeviceInfoPtr src);
void virDomainDeviceInfoClear(virDomainDeviceInfoPtr info);
void virDomainDeviceInfoFree(virDomainDeviceInfoPtr info);

View File

@ -107,7 +107,6 @@ virDomainDeviceCCWAddressIsValid;
virDomainDeviceCCWAddressParseXML;
virDomainDeviceDriveAddressParseXML;
virDomainDeviceInfoAddressIsEqual;
virDomainDeviceInfoCopy;
virDomainDeviceSpaprVioAddressParseXML;
virDomainDeviceUSBAddressParseXML;
virDomainDeviceVirtioSerialAddressParseXML;