chiark / gitweb /
shared: remove now unused function
[elogind.git] / src / shared / path-util.c
index 4857971b33002f29b496f6292a380d742c069b28..ae12c05317f4d34a4f3ae74a52afa46ac3f38e07 100644 (file)
@@ -214,26 +214,6 @@ char **path_strv_canonicalize(char **l) {
         return 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;
 char *path_kill_slashes(char *path) {
         char *f, *t;
         bool slash = false;