提交 07e318b3 编写于 作者: M Matthew Booth 提交者: Daniel Veillard

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.
上级 27e63c00
......@@ -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,
......
......@@ -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);
......
......@@ -179,7 +179,6 @@ virDomainObjListInit;
virDomainObjListDeinit;
virDomainObjRef;
virDomainObjUnref;
virDomainDevicePCIAddressEqual;
virDomainDeviceAddressIsValid;
virDomainDevicePCIAddressIsValid;
virDomainDeviceInfoIsSet;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册