]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Remove now unused str_eq, str_startswith and str_endswith macros
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 30 Jul 2020 18:57:35 +0000 (20:57 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Fri, 31 Jul 2020 07:36:49 +0000 (09:36 +0200)
src/system.hpp

index f2c6fb3b520e63acad4fc4291c16422c5c0c52c1..789eaefc8d223a7e02c6e320e808f553147282d1 100644 (file)
@@ -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.