diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 580809121b2c603373aa1da9d652c4de74e7e544..d4c78fdb9fbb3d7c491dd9f2e413db97a8ee4730 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 54b474082d4fb1c01e72bb339e6ee2cdcbf1f495..fe9faebff6d65b7620acc32a9329139c2755ef53 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 3e110081bf4d3c6f8a39e46f5bfce2aa94de1ec6..684f06cd4f16e768245b1d72aa0cf41c68475303 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -344,7 +344,6 @@ virDomainIOThreadIDAdd;
 virDomainIOThreadIDDefFree;
 virDomainIOThreadIDDel;
 virDomainIOThreadIDFind;
-virDomainIOThreadIDMap;
 virDomainKeyWrapCipherNameTypeFromString;
 virDomainKeyWrapCipherNameTypeToString;
 virDomainLeaseDefFree;