From: Sami Kerola Date: Sun, 2 Jun 2013 17:51:07 +0000 (+0100) Subject: lib: remove unused code X-Git-Tag: v2.24-rc1~513 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d722ce211a068d9d6610c1cc5a518357284ef40e;p=thirdparty%2Futil-linux.git lib: remove unused code Signed-off-by: Sami Kerola --- diff --git a/lib/pager.c b/lib/pager.c index 5cf8c03b5e..c6e74e8996 100644 --- a/lib/pager.c +++ b/lib/pager.c @@ -40,16 +40,6 @@ static inline void close_pair(int fd[2]) close(fd[1]); } -static inline void dup_devnull(int to) -{ - int fd = open(NULL_DEVICE, O_RDWR); - - if (fd < 0) - err(EXIT_FAILURE, _("cannot open %s"), NULL_DEVICE); - dup2(fd, to); - close(fd); -} - static int start_command(struct child_process *cmd) { int need_in;