diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 84ae9573dfd431a4927c415d2393edbadda3264a..f76e027edb1b746e862999de23bdb0d3b6a64ec1 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -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, diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 5a17acedf299ad26c488d7367fff86b26c7009bd..59cdd4e401ff7cc327690345fb420d906ede3f2c 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -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; diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index 17977229d18f128d4dda5dc9bec88252e47857fc..255e8acc14dff3c4b3e70701940ded06e047a66b 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -363,7 +363,6 @@ virDomainDiskMirrorStateTypeFromString; virDomainDiskMirrorStateTypeToString; virDomainDiskModelTypeFromString; virDomainDiskModelTypeToString; -virDomainDiskPathByName; virDomainDiskRemove; virDomainDiskRemoveByName; virDomainDiskSetBlockIOTune;