diff options
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/string-util.c | 4 | ||||
-rw-r--r-- | src/basic/string-util.h | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/basic/string-util.c b/src/basic/string-util.c index 779048904a..08a10e8787 100644 --- a/src/basic/string-util.c +++ b/src/basic/string-util.c @@ -1042,10 +1042,6 @@ char* string_erase(char *x) { return x; } -char *string_free_erase(char *s) { - return mfree(string_erase(s)); -} - bool string_is_safe(const char *p) { const char *t; diff --git a/src/basic/string-util.h b/src/basic/string-util.h index 47b17c9d3e..5ad78be1d3 100644 --- a/src/basic/string-util.h +++ b/src/basic/string-util.h @@ -199,10 +199,6 @@ int free_and_strndup(char **p, const char *s, size_t l); char *string_erase(char *x); -char *string_free_erase(char *s); -DEFINE_TRIVIAL_CLEANUP_FUNC(char *, string_free_erase); -#define _cleanup_string_free_erase_ _cleanup_(string_free_erasep) - bool string_is_safe(const char *p) _pure_; static inline size_t strlen_ptr(const char *s) { |