It is no longer used.
Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
src/qemu/qemu_conf.c | 24 ------------------------
src/qemu/qemu_conf.h | 3 ---
2 files changed, 27 deletions(-)
diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c
index 4bec885c6b..daea11dacb 100644
--- a/src/qemu/qemu_conf.c
+++ b/src/qemu/qemu_conf.c
@@ -1899,30 +1899,6 @@ qemuGetDomainHugepagePath(const virDomainDef *def,
}
-/**
- * qemuGetDomainDefaultHugepath:
- * @def: domain definition
- * @hugetlbfs: array of configured hugepages
- * @nhugetlbfs: number of item in the array
- *
- * Callers must ensure that @hugetlbfs contains at least one entry.
- *
- * Returns 0 on success, -1 otherwise.
- * */
-char *
-qemuGetDomainDefaultHugepath(const virDomainDef *def,
- virHugeTLBFSPtr hugetlbfs,
- size_t nhugetlbfs)
-{
- virHugeTLBFSPtr p;
-
- if (!(p = virFileGetDefaultHugepage(hugetlbfs, nhugetlbfs)))
- p = &hugetlbfs[0];
-
- return qemuGetDomainHugepagePath(def, p);
-}
-
-
/**
* qemuGetDomainHupageMemPath: Construct HP enabled memory backend path
*
diff --git a/src/qemu/qemu_conf.h b/src/qemu/qemu_conf.h
index 14c9d15a72..983e74a3cf 100644
--- a/src/qemu/qemu_conf.h
+++ b/src/qemu/qemu_conf.h
@@ -374,9 +374,6 @@ int qemuTranslateSnapshotDiskSourcePool(virDomainSnapshotDiskDefPtr
def);
char * qemuGetBaseHugepagePath(virHugeTLBFSPtr hugepage);
char * qemuGetDomainHugepagePath(const virDomainDef *def,
virHugeTLBFSPtr hugepage);
-char * qemuGetDomainDefaultHugepath(const virDomainDef *def,
- virHugeTLBFSPtr hugetlbfs,
- size_t nhugetlbfs);
int qemuGetDomainHupageMemPath(const virDomainDef *def,
virQEMUDriverConfigPtr cfg,
--
2.19.2