From: Zbigniew Jędrzejewski-Szmek Date: Sat, 2 Feb 2013 21:12:33 +0000 (-0500) Subject: shared: remove now unused function X-Git-Tag: v198~340 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=0783951b931cb2743a43cbfdc37babd76fedd2fe;hp=874310b7b68c4c0d36ff07397db30a959bb7dae5 shared: remove now unused function --- diff --git a/src/shared/path-util.c b/src/shared/path-util.c index 4857971b3..ae12c0531 100644 --- a/src/shared/path-util.c +++ b/src/shared/path-util.c @@ -214,26 +214,6 @@ char **path_strv_canonicalize(char **l) { return l; } -char **path_strv_remove_empty(char **l) { - char **f, **t; - - if (!l) - return NULL; - - for (f = t = l; *f; f++) { - - if (dir_is_empty(*f) > 0) { - free(*f); - continue; - } - - *(t++) = *f; - } - - *t = NULL; - return l; -} - char *path_kill_slashes(char *path) { char *f, *t; bool slash = false; diff --git a/src/shared/path-util.h b/src/shared/path-util.h index e81821a28..e37ab9350 100644 --- a/src/shared/path-util.h +++ b/src/shared/path-util.h @@ -37,7 +37,6 @@ bool path_equal(const char *a, const char *b); char **path_strv_make_absolute_cwd(char **l); char **path_strv_canonicalize(char **l); -char **path_strv_remove_empty(char **l); int path_is_mount_point(const char *path, bool allow_symlink); int path_is_read_only_fs(const char *path);