Revert non-sense logic in IO.readFully

This was introduced in alleged support for autocrlf, but the
logic makes no sense here.

Change-Id: If37f3b90f21f875cee7165e17a17adfda446384d
This commit is contained in:
Robin Rosenberg 2012-02-12 20:40:15 +01:00
parent f1945cac1d
commit ad9033e43a
1 changed files with 1 additions and 7 deletions

View File

@ -142,13 +142,7 @@ public static final byte[] readFully(final File path, final int max)
throw new IOException(MessageFormat.format(
JGitText.get().fileIsTooLarge, path));
final byte[] buf = new byte[(int) sz];
int actSz = IO.readFully(in, buf, 0);
if (actSz == sz) {
byte[] ret = new byte[actSz];
System.arraycopy(buf, 0, ret, 0, actSz);
return ret;
}
IO.readFully(in, buf, 0);
return buf;
} finally {
try {