mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
4346aec255
commit
b160cb7201
|
@ -3289,7 +3289,6 @@ virStringHasControlChars;
|
|||
virStringHasSuffix;
|
||||
virStringIsEmpty;
|
||||
virStringIsPrintable;
|
||||
virStringListFreeCount;
|
||||
virStringListMerge;
|
||||
virStringMatch;
|
||||
virStringMatchesNameSuffix;
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue