summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/basic/fs-util.c2
-rw-r--r--src/basic/fs-util.h2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/basic/fs-util.c b/src/basic/fs-util.c
index a82d3a14e..562fe8277 100644
--- a/src/basic/fs-util.c
+++ b/src/basic/fs-util.c
@@ -589,7 +589,6 @@ int unlink_or_warn(const char *filename) {
return 0;
}
-#if 0 /// UNNEEDED by elogind
int inotify_add_watch_fd(int fd, int what, uint32_t mask) {
char path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int) + 1];
int r;
@@ -603,7 +602,6 @@ int inotify_add_watch_fd(int fd, int what, uint32_t mask) {
return r;
}
-#endif // 0
static bool safe_transition(const struct stat *a, const struct stat *b) {
/* Returns true if the transition from a to b is safe, i.e. that we never transition from unprivileged to
diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h
index 940853f42..c7d831f50 100644
--- a/src/basic/fs-util.h
+++ b/src/basic/fs-util.h
@@ -76,9 +76,7 @@ union inotify_event_buffer {
uint8_t raw[INOTIFY_EVENT_MAX];
};
-#if 0 /// UNNEEDED by elogind
int inotify_add_watch_fd(int fd, int what, uint32_t mask);
-#endif // 0
enum {
CHASE_PREFIX_ROOT = 1 << 0, /* If set, the specified path will be prefixed by the specified root before beginning the iteration */