Drop unnecessary path_equal_ptr() wrapper

path_equal already works with NULL pointers.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2024-03-23 13:21:06 +01:00
parent 1df021927f
commit 1934242b72
9 changed files with 36 additions and 38 deletions
-4
View File
@@ -105,10 +105,6 @@ static inline int path_simplify_alloc(const char *path, char **ret) {
return 0;
}
static inline bool path_equal_ptr(const char *a, const char *b) {
return !!a == !!b && (!a || path_equal(a, b));
}
/* Note: the search terminates on the first NULL item. */
#define PATH_IN_SET(p, ...) path_strv_contains(STRV_MAKE(__VA_ARGS__), p)