i18n: simplify numeric error reporting
[gitweb.git] / write_or_die.c
index 981687945a761a67f11f651eef78c49621df2d59..073443247a6d56ddd8448aafce854a4b5513e605 100644 (file)
@@ -82,15 +82,3 @@ void write_or_die(int fd, const void *buf, size_t count)
                die_errno("write error");
        }
 }
-
-int write_or_whine_pipe(int fd, const void *buf, size_t count, const char *msg)
-{
-       if (write_in_full(fd, buf, count) < 0) {
-               check_pipe(errno);
-               fprintf(stderr, "%s: write error (%s)\n",
-                       msg, strerror(errno));
-               return 0;
-       }
-
-       return 1;
-}