]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: delete virStringListFree
authorJán Tomko <jtomko@redhat.com>
Sun, 2 Aug 2020 22:00:55 +0000 (00:00 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 3 Aug 2020 13:37:36 +0000 (15:37 +0200)
Now that everything uses g_strfreev, this function is no longer
needed.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/libvirt_private.syms
src/util/virstring.c
src/util/virstring.h

index bb65aa1cdca2449e7b0edf71b9d8b3270639f23c..01c2e710cdead908649203049b5365e51f978c97 100644 (file)
@@ -3216,7 +3216,6 @@ virStringIsEmpty;
 virStringIsPrintable;
 virStringListAdd;
 virStringListAutoFree;
-virStringListFree;
 virStringListFreeCount;
 virStringListGetFirstWithPrefix;
 virStringListHasString;
index b31d4743f2971c732dae1fbe05714e9f52c5a26c..c31f2ede8fc050cd5c2797a7329cde395749cc7f 100644 (file)
@@ -259,24 +259,6 @@ virStringListMerge(char ***dst,
 }
 
 
-/**
- * virStringListFree:
- * @strings: a NULL-terminated array of strings to free
- *
- * Frees a NULL-terminated array of strings, and the array itself.
- * If called on a NULL value, virStringListFree() simply returns.
- */
-void virStringListFree(char **strings)
-{
-    char **tmp = strings;
-    while (tmp && *tmp) {
-        VIR_FREE(*tmp);
-        tmp++;
-    }
-    VIR_FREE(strings);
-}
-
-
 void virStringListAutoFree(char ***strings)
 {
     if (!*strings)
index 00be9519562423eea5ac0dd50fc43d5762591060..561ce0cbc01fb129fe234e1c31f72b6c403b4954 100644 (file)
@@ -45,7 +45,6 @@ void virStringListRemove(char ***strings,
 int virStringListMerge(char ***dst,
                        char ***src);
 
-void virStringListFree(char **strings);
 void virStringListAutoFree(char ***strings);
 void virStringListFreeCount(char **strings,
                             size_t count);