Signed-off-by: Jiri Denemark <jdenemar(a)redhat.com>
---
Notes:
Version 2:
- no change
src/conf/domain_capabilities.c | 33 ---------------------------------
src/conf/domain_capabilities.h | 3 ---
src/libvirt_private.syms | 1 -
3 files changed, 37 deletions(-)
diff --git a/src/conf/domain_capabilities.c b/src/conf/domain_capabilities.c
index ab8ebb650d..a13463a6e7 100644
--- a/src/conf/domain_capabilities.c
+++ b/src/conf/domain_capabilities.c
@@ -185,39 +185,6 @@ virDomainCapsCPUModelsCopy(virDomainCapsCPUModelsPtr old)
}
-virDomainCapsCPUModelsPtr
-virDomainCapsCPUModelsFilter(virDomainCapsCPUModelsPtr old,
- const char **models,
- const char **blacklist)
-{
- virDomainCapsCPUModelsPtr cpuModels;
- size_t i;
-
- if (!(cpuModels = virDomainCapsCPUModelsNew(0)))
- return NULL;
-
- for (i = 0; i < old->nmodels; i++) {
- if (models && !virStringListHasString(models, old->models[i].name))
- continue;
-
- if (blacklist && virStringListHasString(blacklist,
old->models[i].name))
- continue;
-
- if (virDomainCapsCPUModelsAdd(cpuModels,
- old->models[i].name,
- old->models[i].usable,
- old->models[i].blockers) < 0)
- goto error;
- }
-
- return cpuModels;
-
- error:
- virObjectUnref(cpuModels);
- return NULL;
-}
-
-
int
virDomainCapsCPUModelsAddSteal(virDomainCapsCPUModelsPtr cpuModels,
char **name,
diff --git a/src/conf/domain_capabilities.h b/src/conf/domain_capabilities.h
index e3bd8d423e..bdd0bd9253 100644
--- a/src/conf/domain_capabilities.h
+++ b/src/conf/domain_capabilities.h
@@ -195,9 +195,6 @@ virDomainCapsPtr virDomainCapsNew(const char *path,
virDomainCapsCPUModelsPtr virDomainCapsCPUModelsNew(size_t nmodels);
virDomainCapsCPUModelsPtr virDomainCapsCPUModelsCopy(virDomainCapsCPUModelsPtr old);
-virDomainCapsCPUModelsPtr virDomainCapsCPUModelsFilter(virDomainCapsCPUModelsPtr old,
- const char **models,
- const char **blacklist);
int virDomainCapsCPUModelsAddSteal(virDomainCapsCPUModelsPtr cpuModels,
char **name,
virDomainCapsCPUUsable usable,
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 1af18b880b..641b1f93bd 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -193,7 +193,6 @@ virDomainAuditVcpu;
virDomainCapsCPUModelsAdd;
virDomainCapsCPUModelsAddSteal;
virDomainCapsCPUModelsCopy;
-virDomainCapsCPUModelsFilter;
virDomainCapsCPUModelsGet;
virDomainCapsCPUModelsNew;
virDomainCapsCPUUsableTypeFromString;
--
2.23.0