mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 13:05:27 +00:00
conf: Remove virDomainDiskPathByName
Last use was removed in 29682196d8f. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
ec042d3731
commit
40bfdb1ea9
@ -16896,17 +16896,6 @@ virDomainDiskIndexByName(virDomainDefPtr def, const char *name,
|
||||
return candidate;
|
||||
}
|
||||
|
||||
/* Return the path to a disk image if a string identifies at least one
|
||||
* disk belonging to the domain (both device strings 'vda' and paths
|
||||
* '/path/to/file' are converted into '/path/to/file'). */
|
||||
const char *
|
||||
virDomainDiskPathByName(virDomainDefPtr def, const char *name)
|
||||
{
|
||||
int idx = virDomainDiskIndexByName(def, name, true);
|
||||
|
||||
return idx < 0 ? NULL : virDomainDiskGetSource(def->disks[idx]);
|
||||
}
|
||||
|
||||
virDomainDiskDefPtr
|
||||
virDomainDiskByName(virDomainDefPtr def,
|
||||
const char *name,
|
||||
|
@ -3162,7 +3162,6 @@ int virDomainDiskIndexByName(virDomainDefPtr def, const char *name,
|
||||
virDomainDiskDefPtr virDomainDiskByName(virDomainDefPtr def,
|
||||
const char *name,
|
||||
bool allow_ambiguous);
|
||||
const char *virDomainDiskPathByName(virDomainDefPtr, const char *name);
|
||||
int virDomainDiskInsert(virDomainDefPtr def,
|
||||
virDomainDiskDefPtr disk)
|
||||
G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
@ -363,7 +363,6 @@ virDomainDiskMirrorStateTypeFromString;
|
||||
virDomainDiskMirrorStateTypeToString;
|
||||
virDomainDiskModelTypeFromString;
|
||||
virDomainDiskModelTypeToString;
|
||||
virDomainDiskPathByName;
|
||||
virDomainDiskRemove;
|
||||
virDomainDiskRemoveByName;
|
||||
virDomainDiskSetBlockIOTune;
|
||||
|
Loading…
x
Reference in New Issue
Block a user