summaryrefslogtreecommitdiffstats
path: root/src/basic/stat-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/stat-util.h')
-rw-r--r--src/basic/stat-util.h8
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);