From: Joel Rosdahl Date: Thu, 30 Jul 2020 18:57:35 +0000 (+0200) Subject: Remove now unused str_eq, str_startswith and str_endswith macros X-Git-Tag: v4.0~248 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=27b8c49dc67c0a52f563863ac522196e000dedfd;p=thirdparty%2Fccache.git Remove now unused str_eq, str_startswith and str_endswith macros --- diff --git a/src/system.hpp b/src/system.hpp index f2c6fb3b5..789eaefc8 100644 --- a/src/system.hpp +++ b/src/system.hpp @@ -74,12 +74,6 @@ extern char** environ; # define ATTR_NORETURN #endif -#define str_eq(s1, s2) (strcmp((s1), (s2)) == 0) -#define str_startswith(s, prefix) \ - (strncmp((s), (prefix), strlen((prefix))) == 0) -#define str_endswith(s, suffix) \ - (strlen(s) >= strlen(suffix) \ - && str_eq((s) + strlen(s) - strlen(suffix), (suffix))) #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) // Buffer size for I/O operations. Should be a multiple of 4 KiB.