提交 5c633e0f 编写于 作者: P Peter Krempa

conf: Remove now unused virDomainIOThreadIDMap

上级 0b4b5869
...@@ -18651,34 +18651,6 @@ virDomainIOThreadIDAdd(virDomainDefPtr def, ...@@ -18651,34 +18651,6 @@ virDomainIOThreadIDAdd(virDomainDefPtr def,
} }
/*
* virDomainIOThreadIDMap:
* @def: domain definition
*
* Returns a map of active iothreads for @def.
*/
virBitmapPtr
virDomainIOThreadIDMap(virDomainDefPtr def)
{
unsigned int max = 0;
size_t i;
virBitmapPtr ret = NULL;
for (i = 0; i < def->niothreadids; i++) {
if (def->iothreadids[i]->iothread_id > max)
max = def->iothreadids[i]->iothread_id;
}
if (!(ret = virBitmapNew(max)))
return NULL;
for (i = 0; i < def->niothreadids; i++)
ignore_value(virBitmapSetBit(ret, def->iothreadids[i]->iothread_id));
return ret;
}
void void
virDomainIOThreadIDDel(virDomainDefPtr def, virDomainIOThreadIDDel(virDomainDefPtr def,
unsigned int iothread_id) unsigned int iothread_id)
......
...@@ -2728,9 +2728,6 @@ virDomainIOThreadIDDefPtr virDomainIOThreadIDFind(const virDomainDef *def, ...@@ -2728,9 +2728,6 @@ virDomainIOThreadIDDefPtr virDomainIOThreadIDFind(const virDomainDef *def,
unsigned int iothread_id); unsigned int iothread_id);
virDomainIOThreadIDDefPtr virDomainIOThreadIDAdd(virDomainDefPtr def, virDomainIOThreadIDDefPtr virDomainIOThreadIDAdd(virDomainDefPtr def,
unsigned int iothread_id); unsigned int iothread_id);
virBitmapPtr virDomainIOThreadIDMap(virDomainDefPtr def)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
void virDomainIOThreadIDDel(virDomainDefPtr def, unsigned int iothread_id); void virDomainIOThreadIDDel(virDomainDefPtr def, unsigned int iothread_id);
unsigned int virDomainDefFormatConvertXMLFlags(unsigned int flags); unsigned int virDomainDefFormatConvertXMLFlags(unsigned int flags);
......
...@@ -344,7 +344,6 @@ virDomainIOThreadIDAdd; ...@@ -344,7 +344,6 @@ virDomainIOThreadIDAdd;
virDomainIOThreadIDDefFree; virDomainIOThreadIDDefFree;
virDomainIOThreadIDDel; virDomainIOThreadIDDel;
virDomainIOThreadIDFind; virDomainIOThreadIDFind;
virDomainIOThreadIDMap;
virDomainKeyWrapCipherNameTypeFromString; virDomainKeyWrapCipherNameTypeFromString;
virDomainKeyWrapCipherNameTypeToString; virDomainKeyWrapCipherNameTypeToString;
virDomainLeaseDefFree; virDomainLeaseDefFree;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部