]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib: remove unused code
authorSami Kerola <kerolasa@iki.fi>
Sun, 2 Jun 2013 17:51:07 +0000 (18:51 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 7 Jun 2013 10:24:40 +0000 (12:24 +0200)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
lib/pager.c

index 5cf8c03b5ef0fd77a841ce778596b3df3f3c964e..c6e74e8996f9dc93cd5490993c0746b6980f7d28 100644 (file)
@@ -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;