[PATCH 1/2] domain_addr: delete virDomainCCWAddressReleaseAddr

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

 



the last use of this function was deleted in commit
    1aa5e66cf3a0dd5e8ada8483f79cb745f786a131

Signed-off-by: Anya Harter <aharter@xxxxxxxxxx>
---
 src/conf/domain_addr.c   | 24 ------------------------
 src/conf/domain_addr.h   |  3 ---
 src/libvirt_private.syms |  1 -
 3 files changed, 28 deletions(-)

diff --git a/src/conf/domain_addr.c b/src/conf/domain_addr.c
index 5730b3b859..9786adf937 100644
--- a/src/conf/domain_addr.c
+++ b/src/conf/domain_addr.c
@@ -1152,30 +1152,6 @@ virDomainCCWAddressValidate(virDomainDefPtr def ATTRIBUTE_UNUSED,
     return virDomainCCWAddressAssign(info, data, false);
 }
 
-int
-virDomainCCWAddressReleaseAddr(virDomainCCWAddressSetPtr addrs,
-                               virDomainDeviceInfoPtr dev)
-{
-    char *addr;
-    int ret;
-
-    addr = virDomainCCWAddressAsString(&(dev->addr.ccw));
-    if (!addr)
-        return -1;
-
-    if ((ret = virHashRemoveEntry(addrs->defined, addr)) == 0 &&
-        dev->addr.ccw.cssid == addrs->next.cssid &&
-        dev->addr.ccw.ssid == addrs->next.ssid &&
-        dev->addr.ccw.devno < addrs->next.devno) {
-        addrs->next.devno = dev->addr.ccw.devno;
-        addrs->next.assigned = false;
-    }
-
-    VIR_FREE(addr);
-
-    return ret;
-}
-
 void virDomainCCWAddressSetFree(virDomainCCWAddressSetPtr addrs)
 {
     if (!addrs)
diff --git a/src/conf/domain_addr.h b/src/conf/domain_addr.h
index 35530e464c..2db649484a 100644
--- a/src/conf/domain_addr.h
+++ b/src/conf/domain_addr.h
@@ -200,9 +200,6 @@ int virDomainCCWAddressValidate(virDomainDefPtr def,
                                 void *data)
     ATTRIBUTE_NONNULL(3) ATTRIBUTE_NONNULL(4);
 
-int virDomainCCWAddressReleaseAddr(virDomainCCWAddressSetPtr addrs,
-                                   virDomainDeviceInfoPtr dev)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
 virDomainCCWAddressSetPtr virDomainCCWAddressSetCreate(void);
 
 virDomainCCWAddressSetPtr
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 5499a368c0..cd2e4280ab 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -106,7 +106,6 @@ virPCIDeviceAddressParseXML;
 # conf/domain_addr.h
 virDomainCCWAddressAllocate;
 virDomainCCWAddressAssign;
-virDomainCCWAddressReleaseAddr;
 virDomainCCWAddressSetCreate;
 virDomainCCWAddressSetFree;
 virDomainCCWAddressValidate;
-- 
2.17.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux