mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
shared: remove now unused function
This commit is contained in:
parent
874310b7b6
commit
0783951b93
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user