Allow the user to control the verbosity of merge-recursive.
[gitweb.git] / write_or_die.c
index 4e8183e93e88e7336baed561b026b702b9dcba4e..046e79d485feaa26d305868012f73b04088366b6 100644 (file)
@@ -17,18 +17,6 @@ int read_in_full(int fd, void *buf, size_t count)
        return total;
 }
 
-void read_or_die(int fd, void *buf, size_t count)
-{
-       ssize_t loaded;
-
-       loaded = read_in_full(fd, buf, count);
-       if (loaded != count) {
-               if (loaded < 0)
-                       die("read error (%s)", strerror(errno));
-               die("read error: end of file");
-       }
-}
-
 int write_in_full(int fd, const void *buf, size_t count)
 {
        const char *p = buf;