From 7d30ad49d869df6662ac4ce0023f91d2bb364c87 Mon Sep 17 00:00:00 2001 From: Sven Eden Date: Mon, 20 Aug 2018 09:16:39 +0200 Subject: [PATCH] Prep v239: path-util.[hc] - Masked path_simplify_and_warn() - Nowhere needed. --- src/basic/path-util.c | 2 ++ src/basic/path-util.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/basic/path-util.c b/src/basic/path-util.c index 45713d6d7..12e91c40a 100644 --- a/src/basic/path-util.c +++ b/src/basic/path-util.c @@ -1015,6 +1015,7 @@ bool empty_or_root(const char *root) { return root[strspn(root, "/")] == 0; } +#if 0 /// UNNEEDED by elogind int path_simplify_and_warn( char *path, unsigned flag, @@ -1061,3 +1062,4 @@ int path_simplify_and_warn( return 0; } +#endif // 0 diff --git a/src/basic/path-util.h b/src/basic/path-util.h index 53e548d8c..fd571e9ca 100644 --- a/src/basic/path-util.h +++ b/src/basic/path-util.h @@ -178,6 +178,7 @@ static inline const char *empty_to_root(const char *path) { return isempty(path) ? "/" : path; } +#if 0 /// UNNEEDED by elogind enum { PATH_CHECK_FATAL = 1 << 0, /* If not set, then error message is appended with 'ignoring'. */ PATH_CHECK_ABSOLUTE = 1 << 1, @@ -185,3 +186,4 @@ enum { }; int path_simplify_and_warn(char *path, unsigned flag, const char *unit, const char *filename, unsigned line, const char *lvalue); +#endif // 0 -- 2.30.2