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:
Peter Krempa 2021-02-05 18:29:58 +01:00
parent dcd547aec1
commit 51f8baee8d
3 changed files with 0 additions and 14 deletions

View File

@ -3242,7 +3242,6 @@ virStringIsEmpty;
virStringIsPrintable; virStringIsPrintable;
virStringListFreeCount; virStringListFreeCount;
virStringListJoin; virStringListJoin;
virStringListLength;
virStringListMerge; virStringListMerge;
virStringMatch; virStringMatch;
virStringMatchesNameSuffix; virStringMatchesNameSuffix;

View File

@ -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: * virStringSortCompare:
* *

View File

@ -112,8 +112,6 @@ int virStrcpy(char *dest, const char *src, size_t destbytes)
G_GNUC_WARN_UNUSED_RESULT; G_GNUC_WARN_UNUSED_RESULT;
#define virStrcpyStatic(dest, src) virStrcpy((dest), (src), sizeof(dest)) #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 virStringSortCompare(const void *a, const void *b);
int virStringSortRevCompare(const void *a, const void *b); int virStringSortRevCompare(const void *a, const void *b);
int virStringToUpper(char **dst, const char *src); int virStringToUpper(char **dst, const char *src);