util: delete virStringListFree

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>
This commit is contained in:
Ján Tomko 2020-08-03 00:00:55 +02:00
parent 8003fe0361
commit 21cd1e7254
3 changed files with 0 additions and 20 deletions

View File

@ -3216,7 +3216,6 @@ virStringIsEmpty;
virStringIsPrintable;
virStringListAdd;
virStringListAutoFree;
virStringListFree;
virStringListFreeCount;
virStringListGetFirstWithPrefix;
virStringListHasString;

View 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)

View 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);