mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu: domain: Remove unused qemuDomainDiskNodeFormatLookup
The function has no users now and there's no need for it as the common pattern is to look up the whole disk object anyways. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
f19248a139
commit
180b3422e9
@ -12032,20 +12032,6 @@ qemuDomainDiskChangeSupported(virDomainDiskDefPtr disk,
|
||||
}
|
||||
|
||||
|
||||
/* Return the format node name for a given disk of an online guest */
|
||||
const char *
|
||||
qemuDomainDiskNodeFormatLookup(virDomainObjPtr vm,
|
||||
const char *disk)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < vm->def->ndisks; i++) {
|
||||
if (STREQ(vm->def->disks[i]->dst, disk))
|
||||
return vm->def->disks[i]->src->nodeformat;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool
|
||||
qemuDomainDiskBlockJobIsActive(virDomainDiskDefPtr disk)
|
||||
{
|
||||
|
@ -858,9 +858,6 @@ int qemuDomainDetermineDiskChain(virQEMUDriverPtr driver,
|
||||
bool qemuDomainDiskChangeSupported(virDomainDiskDefPtr disk,
|
||||
virDomainDiskDefPtr orig_disk);
|
||||
|
||||
const char *qemuDomainDiskNodeFormatLookup(virDomainObjPtr vm,
|
||||
const char *disk);
|
||||
|
||||
void qemuDomainGetImageIds(virQEMUDriverConfigPtr cfg,
|
||||
virDomainObjPtr vm,
|
||||
virStorageSourcePtr src,
|
||||
|
Loading…
Reference in New Issue
Block a user