diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-05-04 11:00:58 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-05-04 13:29:14 +0200 |
commit | 0af6ce9ab35a100aca39e6814fdcf82e7f5b2d5f (patch) | |
tree | fdc579d6336970b42d09de970425e10317db6ec5 /src/basic | |
parent | stat-util: fix dir_is_empty() with hidden/backup files (diff) | |
download | systemd-0af6ce9ab35a100aca39e6814fdcf82e7f5b2d5f.tar.xz systemd-0af6ce9ab35a100aca39e6814fdcf82e7f5b2d5f.zip |
stat-util: drop dir_is_populated() which is apparently not used
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/stat-util.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/basic/stat-util.h b/src/basic/stat-util.h index ce3c8cccfe..7f0b3dc0af 100644 --- a/src/basic/stat-util.h +++ b/src/basic/stat-util.h @@ -22,14 +22,6 @@ static inline int dir_is_empty(const char *path, bool ignore_hidden_or_backup) { return dir_is_empty_at(AT_FDCWD, path, ignore_hidden_or_backup); } -static inline int dir_is_populated(const char *path, bool ignore_hidden_or_backup) { - int r; - r = dir_is_empty(path, ignore_hidden_or_backup); - if (r < 0) - return r; - return !r; -} - bool null_or_empty(struct stat *st) _pure_; int null_or_empty_path_with_root(const char *fn, const char *root); int null_or_empty_fd(int fd); |