Remove unused functions from domain_conf
Remove virDomainDevicePCIAddressEqual and virDomainDeviceDriveAddressEqual, which are defined but not used anywhere. * src/conf/domain_conf.[ch] src/libvirt_private.syms: Remove virDomainDevicePCIAddressEqual and virDomainDeviceDriveAddressEqual.
This commit is contained in:
parent
27e63c0037
commit
07e318b3db
@ -966,30 +966,6 @@ static int virDomainDeviceInfoFormat(virBufferPtr buf,
|
|||||||
|
|
||||||
#ifndef PROXY
|
#ifndef PROXY
|
||||||
|
|
||||||
int virDomainDevicePCIAddressEqual(virDomainDevicePCIAddressPtr a,
|
|
||||||
virDomainDevicePCIAddressPtr b)
|
|
||||||
{
|
|
||||||
if (a->domain == b->domain &&
|
|
||||||
a->bus == b->bus &&
|
|
||||||
a->slot == b->slot &&
|
|
||||||
a->function == b->function)
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int virDomainDeviceDriveAddressEqual(virDomainDeviceDriveAddressPtr a,
|
|
||||||
virDomainDeviceDriveAddressPtr b)
|
|
||||||
{
|
|
||||||
if (a->controller == b->controller &&
|
|
||||||
a->bus == b->bus &&
|
|
||||||
a->unit == b->unit)
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
virDomainDevicePCIAddressParseXML(xmlNodePtr node,
|
virDomainDevicePCIAddressParseXML(xmlNodePtr node,
|
||||||
|
@ -740,10 +740,6 @@ void virDomainWatchdogDefFree(virDomainWatchdogDefPtr def);
|
|||||||
void virDomainVideoDefFree(virDomainVideoDefPtr def);
|
void virDomainVideoDefFree(virDomainVideoDefPtr def);
|
||||||
void virDomainHostdevDefFree(virDomainHostdevDefPtr def);
|
void virDomainHostdevDefFree(virDomainHostdevDefPtr def);
|
||||||
void virDomainDeviceDefFree(virDomainDeviceDefPtr def);
|
void virDomainDeviceDefFree(virDomainDeviceDefPtr def);
|
||||||
int virDomainDevicePCIAddressEqual(virDomainDevicePCIAddressPtr a,
|
|
||||||
virDomainDevicePCIAddressPtr b);
|
|
||||||
int virDomainDeviceDriveAddressEqual(virDomainDeviceDriveAddressPtr a,
|
|
||||||
virDomainDeviceDriveAddressPtr b);
|
|
||||||
int virDomainDeviceAddressIsValid(virDomainDeviceInfoPtr info,
|
int virDomainDeviceAddressIsValid(virDomainDeviceInfoPtr info,
|
||||||
int type);
|
int type);
|
||||||
int virDomainDevicePCIAddressIsValid(virDomainDevicePCIAddressPtr addr);
|
int virDomainDevicePCIAddressIsValid(virDomainDevicePCIAddressPtr addr);
|
||||||
|
@ -179,7 +179,6 @@ virDomainObjListInit;
|
|||||||
virDomainObjListDeinit;
|
virDomainObjListDeinit;
|
||||||
virDomainObjRef;
|
virDomainObjRef;
|
||||||
virDomainObjUnref;
|
virDomainObjUnref;
|
||||||
virDomainDevicePCIAddressEqual;
|
|
||||||
virDomainDeviceAddressIsValid;
|
virDomainDeviceAddressIsValid;
|
||||||
virDomainDevicePCIAddressIsValid;
|
virDomainDevicePCIAddressIsValid;
|
||||||
virDomainDeviceInfoIsSet;
|
virDomainDeviceInfoIsSet;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user