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:
Peter Krempa 2020-01-08 08:19:42 +01:00
parent f19248a139
commit 180b3422e9
2 changed files with 0 additions and 17 deletions

View File

@ -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)
{

View File

@ -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,