[PATCH 13/13] util: virstring: Remove unused virStringListFreeCount

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

 



Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/libvirt_private.syms |  1 -
 src/util/virstring.c     | 23 -----------------------
 src/util/virstring.h     |  3 ---
 3 files changed, 27 deletions(-)

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index fd02b27c51..e177591fa8 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -3288,7 +3288,6 @@ virStringHasControlChars;
 virStringHasSuffix;
 virStringIsEmpty;
 virStringIsPrintable;
-virStringListFreeCount;
 virStringListMerge;
 virStringMatch;
 virStringMatchesNameSuffix;
diff --git a/src/util/virstring.c b/src/util/virstring.c
index a2c07e5c17..f416fed3c5 100644
--- a/src/util/virstring.c
+++ b/src/util/virstring.c
@@ -70,29 +70,6 @@ virStringListMerge(char ***dst,
 }


-/**
- * virStringListFreeCount:
- * @strings: array of strings to free
- * @count: number of elements in the array
- *
- * Frees a string array of @count length.
- */
-void
-virStringListFreeCount(char **strings,
-                       size_t count)
-{
-    size_t i;
-
-    if (!strings)
-        return;
-
-    for (i = 0; i < count; i++)
-        g_free(strings[i]);
-
-    g_free(strings);
-}
-
-
 /* Like strtol, but produce an "int" result, and check more carefully.
    Return 0 upon success;  return -1 to indicate failure.
    When END_PTR is NULL, the byte after the final valid digit must be NUL.
diff --git a/src/util/virstring.h b/src/util/virstring.h
index 7cc1d8c55f..ca81889c9b 100644
--- a/src/util/virstring.h
+++ b/src/util/virstring.h
@@ -25,9 +25,6 @@
 int virStringListMerge(char ***dst,
                        char ***src);

-void virStringListFreeCount(char **strings,
-                            size_t count);
-
 int virStrToLong_i(char const *s,
                    char **end_ptr,
                    int base,
-- 
2.31.1




[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