util: virstring: Remove unused virStringListFreeCount

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2021-08-04 13:30:39 +02:00
parent 4346aec255
commit b160cb7201
3 changed files with 0 additions and 27 deletions

View File

@ -3289,7 +3289,6 @@ virStringHasControlChars;
virStringHasSuffix;
virStringIsEmpty;
virStringIsPrintable;
virStringListFreeCount;
virStringListMerge;
virStringMatch;
virStringMatchesNameSuffix;

View File

@ -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.

View File

@ -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,