summaryrefslogtreecommitdiff
path: root/src/basic/fdset.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-13 12:28:04 +0100
committerLennart Poettering <lennart@poettering.net>2016-02-13 12:28:04 +0100
commit1d9b8e58340e0fdc77158f04c36f5e6736754259 (patch)
tree059c041a15c6f1eacc42b065882af3d2f80049de /src/basic/fdset.c
parent0655ef96fd88e3443009486256ce7bab43a27e56 (diff)
util: drop two unused calls from src/basic/
Diffstat (limited to 'src/basic/fdset.c')
-rw-r--r--src/basic/fdset.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/basic/fdset.c b/src/basic/fdset.c
index 3674d3ed9d..06f8ecbdbc 100644
--- a/src/basic/fdset.c
+++ b/src/basic/fdset.c
@@ -94,19 +94,6 @@ int fdset_put(FDSet *s, int fd) {
return set_put(MAKE_SET(s), FD_TO_PTR(fd));
}
-int fdset_consume(FDSet *s, int fd) {
- int r;
-
- assert(s);
- assert(fd >= 0);
-
- r = fdset_put(s, fd);
- if (r <= 0)
- safe_close(fd);
-
- return r;
-}
-
int fdset_put_dup(FDSet *s, int fd) {
int copy, r;