conf: Remove unused virDomainDiskFindByBusAndDst

Previous commit removed last use of this function so we can get rid of
it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
Peter Krempa 2019-10-14 17:19:15 +02:00
parent 704edb1b70
commit 7c21e38d38
3 changed files with 0 additions and 25 deletions

View File

@ -8541,27 +8541,6 @@ virDomainDeviceFindSCSIController(const virDomainDef *def,
return NULL; return NULL;
} }
virDomainDiskDefPtr
virDomainDiskFindByBusAndDst(virDomainDefPtr def,
int bus,
char *dst)
{
size_t i;
if (!dst)
return NULL;
for (i = 0; i < def->ndisks; i++) {
if (def->disks[i]->bus == bus &&
STREQ(def->disks[i]->dst, dst)) {
return def->disks[i];
}
}
return NULL;
}
int int
virDomainDiskDefAssignAddress(virDomainXMLOptionPtr xmlopt, virDomainDiskDefAssignAddress(virDomainXMLOptionPtr xmlopt,
virDomainDiskDefPtr def, virDomainDiskDefPtr def,

View File

@ -2859,9 +2859,6 @@ void virDomainDiskSetFormat(virDomainDiskDefPtr def, int format);
virDomainControllerDefPtr virDomainControllerDefPtr
virDomainDeviceFindSCSIController(const virDomainDef *def, virDomainDeviceFindSCSIController(const virDomainDef *def,
virDomainDeviceInfoPtr info); virDomainDeviceInfoPtr info);
virDomainDiskDefPtr virDomainDiskFindByBusAndDst(virDomainDefPtr def,
int bus,
char *dst);
virDomainControllerDefPtr virDomainControllerDefNew(virDomainControllerType type); virDomainControllerDefPtr virDomainControllerDefNew(virDomainControllerType type);
void virDomainControllerDefFree(virDomainControllerDefPtr def); void virDomainControllerDefFree(virDomainControllerDefPtr def);

View File

@ -346,7 +346,6 @@ virDomainDiskDiscardTypeToString;
virDomainDiskEmptySource; virDomainDiskEmptySource;
virDomainDiskErrorPolicyTypeFromString; virDomainDiskErrorPolicyTypeFromString;
virDomainDiskErrorPolicyTypeToString; virDomainDiskErrorPolicyTypeToString;
virDomainDiskFindByBusAndDst;
virDomainDiskGeometryTransTypeFromString; virDomainDiskGeometryTransTypeFromString;
virDomainDiskGeometryTransTypeToString; virDomainDiskGeometryTransTypeToString;
virDomainDiskGetDetectZeroesMode; virDomainDiskGetDetectZeroesMode;