glib provides g_strv_length.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/libvirt_private.syms | 1 -
src/util/virstring.c | 11 -----------
src/util/virstring.h | 2 --
3 files changed, 14 deletions(-)
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index ab8cf62552..535776166d 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -3242,7 +3242,6 @@ virStringIsEmpty;
virStringIsPrintable;
virStringListFreeCount;
virStringListJoin;
-virStringListLength;
virStringListMerge;
virStringMatch;
virStringMatchesNameSuffix;
diff --git a/src/util/virstring.c b/src/util/virstring.c
index 1fd61650be..c7276fa7c4 100644
--- a/src/util/virstring.c
+++ b/src/util/virstring.c
@@ -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:
*
diff --git a/src/util/virstring.h b/src/util/virstring.h
index 1a15812307..db6f2d4795 100644
--- a/src/util/virstring.h
+++ b/src/util/virstring.h
@@ -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);
--
2.29.2