unpack-objects: remove unused variable "eof"
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Johannes Schindelin committed
Aug 29, 2006 at 12:50 UTC
c9b0597d3d3168e29f68b0e82fa755ee165f6b72
1 file changed
+1
-3
builtin-unpack-objects.c
+1
-3
@@ -15,7 +15,7 @@ static const char unpack_usage[] = "git-unpack-objects [-n] [-q] < pack-file";
15
16
/* We always read in 4kB chunks. */
17
static unsigned char buffer[4096];
18
-static unsigned long offset, len, eof;
18
+static unsigned long offset, len;
19
static SHA_CTX ctx;
20
21
/*
@@ -26,8 +26,6 @@ static void * fill(int min)
26
{
27
if (min <= len)
28
return buffer + offset;
29
- if (eof)
30
- die("unable to fill input");
29
if (min > sizeof(buffer))
30
die("cannot fill %d bytes", min);
31
if (offset) {