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:
Matthew Booth 2010-02-18 16:45:18 +01:00 committed by Daniel Veillard
parent 27e63c0037
commit 07e318b3db
3 changed files with 0 additions and 29 deletions

View File

@ -966,30 +966,6 @@ static int virDomainDeviceInfoFormat(virBufferPtr buf,
#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
virDomainDevicePCIAddressParseXML(xmlNodePtr node,

View File

@ -740,10 +740,6 @@ void virDomainWatchdogDefFree(virDomainWatchdogDefPtr def);
void virDomainVideoDefFree(virDomainVideoDefPtr def);
void virDomainHostdevDefFree(virDomainHostdevDefPtr def);
void virDomainDeviceDefFree(virDomainDeviceDefPtr def);
int virDomainDevicePCIAddressEqual(virDomainDevicePCIAddressPtr a,
virDomainDevicePCIAddressPtr b);
int virDomainDeviceDriveAddressEqual(virDomainDeviceDriveAddressPtr a,
virDomainDeviceDriveAddressPtr b);
int virDomainDeviceAddressIsValid(virDomainDeviceInfoPtr info,
int type);
int virDomainDevicePCIAddressIsValid(virDomainDevicePCIAddressPtr addr);

View File

@ -179,7 +179,6 @@ virDomainObjListInit;
virDomainObjListDeinit;
virDomainObjRef;
virDomainObjUnref;
virDomainDevicePCIAddressEqual;
virDomainDeviceAddressIsValid;
virDomainDevicePCIAddressIsValid;
virDomainDeviceInfoIsSet;