mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
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:
parent
704edb1b70
commit
7c21e38d38
@ -8541,27 +8541,6 @@ virDomainDeviceFindSCSIController(const virDomainDef *def,
|
||||
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
|
||||
virDomainDiskDefAssignAddress(virDomainXMLOptionPtr xmlopt,
|
||||
virDomainDiskDefPtr def,
|
||||
|
@ -2859,9 +2859,6 @@ void virDomainDiskSetFormat(virDomainDiskDefPtr def, int format);
|
||||
virDomainControllerDefPtr
|
||||
virDomainDeviceFindSCSIController(const virDomainDef *def,
|
||||
virDomainDeviceInfoPtr info);
|
||||
virDomainDiskDefPtr virDomainDiskFindByBusAndDst(virDomainDefPtr def,
|
||||
int bus,
|
||||
char *dst);
|
||||
|
||||
virDomainControllerDefPtr virDomainControllerDefNew(virDomainControllerType type);
|
||||
void virDomainControllerDefFree(virDomainControllerDefPtr def);
|
||||
|
@ -346,7 +346,6 @@ virDomainDiskDiscardTypeToString;
|
||||
virDomainDiskEmptySource;
|
||||
virDomainDiskErrorPolicyTypeFromString;
|
||||
virDomainDiskErrorPolicyTypeToString;
|
||||
virDomainDiskFindByBusAndDst;
|
||||
virDomainDiskGeometryTransTypeFromString;
|
||||
virDomainDiskGeometryTransTypeToString;
|
||||
virDomainDiskGetDetectZeroesMode;
|
||||
|
Loading…
Reference in New Issue
Block a user