提交 180ac4ca 编写于 作者: J Jiri Denemark

conf: Drop unused virDomainCapsCPUModelsFilter

Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 bc0b2288
...@@ -190,39 +190,6 @@ virDomainCapsCPUModelsCopy(virDomainCapsCPUModelsPtr old) ...@@ -190,39 +190,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 int
virDomainCapsCPUModelsAddSteal(virDomainCapsCPUModelsPtr cpuModels, virDomainCapsCPUModelsAddSteal(virDomainCapsCPUModelsPtr cpuModels,
char **name, char **name,
......
...@@ -203,9 +203,6 @@ virDomainCapsPtr virDomainCapsNew(const char *path, ...@@ -203,9 +203,6 @@ virDomainCapsPtr virDomainCapsNew(const char *path,
virDomainCapsCPUModelsPtr virDomainCapsCPUModelsNew(size_t nmodels); virDomainCapsCPUModelsPtr virDomainCapsCPUModelsNew(size_t nmodels);
virDomainCapsCPUModelsPtr virDomainCapsCPUModelsCopy(virDomainCapsCPUModelsPtr old); virDomainCapsCPUModelsPtr virDomainCapsCPUModelsCopy(virDomainCapsCPUModelsPtr old);
virDomainCapsCPUModelsPtr virDomainCapsCPUModelsFilter(virDomainCapsCPUModelsPtr old,
const char **models,
const char **blacklist);
int virDomainCapsCPUModelsAddSteal(virDomainCapsCPUModelsPtr cpuModels, int virDomainCapsCPUModelsAddSteal(virDomainCapsCPUModelsPtr cpuModels,
char **name, char **name,
virDomainCapsCPUUsable usable, virDomainCapsCPUUsable usable,
......
...@@ -194,7 +194,6 @@ virDomainAuditVcpu; ...@@ -194,7 +194,6 @@ virDomainAuditVcpu;
virDomainCapsCPUModelsAdd; virDomainCapsCPUModelsAdd;
virDomainCapsCPUModelsAddSteal; virDomainCapsCPUModelsAddSteal;
virDomainCapsCPUModelsCopy; virDomainCapsCPUModelsCopy;
virDomainCapsCPUModelsFilter;
virDomainCapsCPUModelsGet; virDomainCapsCPUModelsGet;
virDomainCapsCPUModelsNew; virDomainCapsCPUModelsNew;
virDomainCapsCPUUsableTypeFromString; virDomainCapsCPUUsableTypeFromString;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册