From: Peter Krempa Date: Mon, 1 Feb 2021 13:46:46 +0000 (+0100) Subject: util: virstring: Remove unused prototypes for virStr(n)dup X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d115019b6a52bfd18cd5ee87cfe8d0811a06d725;p=libvirt.git util: virstring: Remove unused prototypes for virStr(n)dup The headers weren't removed after use of VIR_STRDUP was removed. Signed-off-by: Peter Krempa Reviewed-by: Daniel P. Berrangé --- diff --git a/src/util/virstring.h b/src/util/virstring.h index 55547b040a..cfd24f0b74 100644 --- a/src/util/virstring.h +++ b/src/util/virstring.h @@ -123,13 +123,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)) -/* Don't call these directly - use the macros below */ -int virStrdup(char **dest, const char *src) - G_GNUC_WARN_UNUSED_RESULT ATTRIBUTE_NONNULL(1); - -int virStrndup(char **dest, const char *src, ssize_t n) - G_GNUC_WARN_UNUSED_RESULT ATTRIBUTE_NONNULL(1); - size_t virStringListLength(const char * const *strings); int virStringSortCompare(const void *a, const void *b);