mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
util: virstring: Remove virStringListLength
glib provides g_strv_length. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
dcd547aec1
commit
51f8baee8d
@ -3242,7 +3242,6 @@ virStringIsEmpty;
|
||||
virStringIsPrintable;
|
||||
virStringListFreeCount;
|
||||
virStringListJoin;
|
||||
virStringListLength;
|
||||
virStringListMerge;
|
||||
virStringMatch;
|
||||
virStringMatchesNameSuffix;
|
||||
|
@ -747,17 +747,6 @@ virStringIsEmpty(const char *str)
|
||||
}
|
||||
|
||||
|
||||
size_t virStringListLength(const char * const *strings)
|
||||
{
|
||||
size_t i = 0;
|
||||
|
||||
while (strings && strings[i])
|
||||
i++;
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* virStringSortCompare:
|
||||
*
|
||||
|
@ -112,8 +112,6 @@ int virStrcpy(char *dest, const char *src, size_t destbytes)
|
||||
G_GNUC_WARN_UNUSED_RESULT;
|
||||
#define virStrcpyStatic(dest, src) virStrcpy((dest), (src), sizeof(dest))
|
||||
|
||||
size_t virStringListLength(const char * const *strings);
|
||||
|
||||
int virStringSortCompare(const void *a, const void *b);
|
||||
int virStringSortRevCompare(const void *a, const void *b);
|
||||
int virStringToUpper(char **dst, const char *src);
|
||||
|
Loading…
Reference in New Issue
Block a user