1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-26 14:04:03 +03:00

stat-util: drop dir_is_populated() which is apparently not used

This commit is contained in:
Lennart Poettering 2022-05-04 11:00:58 +02:00
parent db55bbf29b
commit 0af6ce9ab3

View File

@ -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);