[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 3/3] conf: Remove now unused virDomainIOThreadIDMap



---
 src/conf/domain_conf.c   | 28 ----------------------------
 src/conf/domain_conf.h   |  3 ---
 src/libvirt_private.syms |  1 -
 3 files changed, 32 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index d7f0291..d11ccfa 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -18522,34 +18522,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
 virDomainIOThreadIDDel(virDomainDefPtr def,
                        unsigned int iothread_id)
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index 83bdd67..8fa6533 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -2709,9 +2709,6 @@ virDomainIOThreadIDDefPtr virDomainIOThreadIDFind(const virDomainDef *def,
                                                   unsigned int iothread_id);
 virDomainIOThreadIDDefPtr virDomainIOThreadIDAdd(virDomainDefPtr def,
                                                  unsigned int iothread_id);
-
-virBitmapPtr virDomainIOThreadIDMap(virDomainDefPtr def)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
 void virDomainIOThreadIDDel(virDomainDefPtr def, unsigned int iothread_id);

 unsigned int virDomainDefFormatConvertXMLFlags(unsigned int flags);
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 311858f..ede9b59 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -344,7 +344,6 @@ virDomainIOThreadIDAdd;
 virDomainIOThreadIDDefFree;
 virDomainIOThreadIDDel;
 virDomainIOThreadIDFind;
-virDomainIOThreadIDMap;
 virDomainKeyWrapCipherNameTypeFromString;
 virDomainKeyWrapCipherNameTypeToString;
 virDomainLeaseDefFree;
-- 
2.7.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]