From 1ca5d08407579f64d2595309a8803e60aff1ea05 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 16 Apr 2025 12:34:34 +0200 Subject: [PATCH] (!69) util-strings: drop unused streq() and strneq() Not used anywhere. Signed-off-by: Enrico Weigelt, metux IT consult --- src/util-strings.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/util-strings.h b/src/util-strings.h index f960c86..213d0d2 100644 --- a/src/util-strings.h +++ b/src/util-strings.h @@ -43,24 +43,6 @@ #include "util-macros.h" -static inline bool -streq(const char *str1, const char *str2) -{ - /* one NULL, one not NULL is always false */ - if (str1 && str2) - return strcmp(str1, str2) == 0; - return str1 == str2; -} - -static inline bool -strneq(const char *str1, const char *str2, int n) -{ - /* one NULL, one not NULL is always false */ - if (str1 && str2) - return strncmp(str1, str2, n) == 0; - return str1 == str2; -} - static inline void * zalloc(size_t size) {