From 5c633e0f7bdda89c89ba056f01e4a2dbda1f6c09 Mon Sep 17 00:00:00 2001
From: Peter Krempa <pkrempa@redhat.com>
Date: Mon, 21 Mar 2016 17:08:00 +0100
Subject: [PATCH] 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 580809121b..d4c78fdb9f 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -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
 virDomainIOThreadIDDel(virDomainDefPtr def,
                        unsigned int iothread_id)
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index 54b474082d..fe9faebff6 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -2728,9 +2728,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 3e110081bf..684f06cd4f 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -344,7 +344,6 @@ virDomainIOThreadIDAdd;
 virDomainIOThreadIDDefFree;
 virDomainIOThreadIDDel;
 virDomainIOThreadIDFind;
-virDomainIOThreadIDMap;
 virDomainKeyWrapCipherNameTypeFromString;
 virDomainKeyWrapCipherNameTypeToString;
 virDomainLeaseDefFree;
-- 
GitLab