Skip to content

Commit

Permalink
remove obviosuly borken code that did nothing but cause GC
Browse files Browse the repository at this point in the history
  • Loading branch information
jtnord committed Dec 5, 2019
1 parent 8028dc5 commit a6c3144
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,6 @@ private void drainOutput(HttpURLConnection conn) throws IOException {
// cause an IOException as we are in error - but there is no really way to tell this so check the
// length instead.
if (conn.getContentLength() > 0) {
if (conn.getContentLength() < 1024) {
byte[] data = new byte[conn.getConnectTimeout()];
}
if (conn.getErrorStream() != null) {
IOUtils.skip(conn.getErrorStream(), conn.getContentLength());
}
Expand Down

0 comments on commit a6c3144

Please sign in to comment.