mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
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;
|
virStringHasSuffix;
|
||||||
virStringIsEmpty;
|
virStringIsEmpty;
|
||||||
virStringIsPrintable;
|
virStringIsPrintable;
|
||||||
virStringListFreeCount;
|
|
||||||
virStringListMerge;
|
virStringListMerge;
|
||||||
virStringMatch;
|
virStringMatch;
|
||||||
virStringMatchesNameSuffix;
|
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.
|
/* Like strtol, but produce an "int" result, and check more carefully.
|
||||||
Return 0 upon success; return -1 to indicate failure.
|
Return 0 upon success; return -1 to indicate failure.
|
||||||
When END_PTR is NULL, the byte after the final valid digit must be NUL.
|
When END_PTR is NULL, the byte after the final valid digit must be NUL.
|
||||||
|
@ -25,9 +25,6 @@
|
|||||||
int virStringListMerge(char ***dst,
|
int virStringListMerge(char ***dst,
|
||||||
char ***src);
|
char ***src);
|
||||||
|
|
||||||
void virStringListFreeCount(char **strings,
|
|
||||||
size_t count);
|
|
||||||
|
|
||||||
int virStrToLong_i(char const *s,
|
int virStrToLong_i(char const *s,
|
||||||
char **end_ptr,
|
char **end_ptr,
|
||||||
int base,
|
int base,
|
||||||
|
Loading…
Reference in New Issue
Block a user