Code

unpack-objects: remove unused variable "eof"
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Tue, 29 Aug 2006 10:50:29 +0000 (12:50 +0200)
committerJunio C Hamano <junkio@cox.net>
Tue, 29 Aug 2006 21:26:04 +0000 (14:26 -0700)
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-unpack-objects.c

index ca0ebc258563f2ea2aec94eed2de31799f3f16cc..0c180b53a32dc316bcbc614caee84eda109c5a59 100644 (file)
@@ -15,7 +15,7 @@ static const char unpack_usage[] = "git-unpack-objects [-n] [-q] < pack-file";
 
 /* We always read in 4kB chunks. */
 static unsigned char buffer[4096];
-static unsigned long offset, len, eof;
+static unsigned long offset, len;
 static SHA_CTX ctx;
 
 /*
@@ -26,8 +26,6 @@ static void * fill(int min)
 {
        if (min <= len)
                return buffer + offset;
-       if (eof)
-               die("unable to fill input");
        if (min > sizeof(buffer))
                die("cannot fill %d bytes", min);
        if (offset) {