From a4d7b4c4dcf4f43cb90211df24fd0dc4a46ce300 Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Tue, 3 Oct 2017 10:18:44 +0200 Subject: [PATCH] Removed unnecessary code. --- .../main/java/org/eclipse/jetty/client/GZIPContentDecoder.java | 2 -- .../main/java/org/eclipse/jetty/http/GZIPContentDecoder.java | 1 - 2 files changed, 3 deletions(-) diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/GZIPContentDecoder.java b/jetty-client/src/main/java/org/eclipse/jetty/client/GZIPContentDecoder.java index a3d033a7dfd..1682b94772d 100644 --- a/jetty-client/src/main/java/org/eclipse/jetty/client/GZIPContentDecoder.java +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/GZIPContentDecoder.java @@ -22,11 +22,9 @@ import org.eclipse.jetty.io.ByteBufferPool; /** * {@link ContentDecoder} for the "gzip" encoding. - * */ public class GZIPContentDecoder extends org.eclipse.jetty.http.GZIPContentDecoder implements ContentDecoder { - private static final int DEFAULT_BUFFER_SIZE = 2048; public GZIPContentDecoder() diff --git a/jetty-http/src/main/java/org/eclipse/jetty/http/GZIPContentDecoder.java b/jetty-http/src/main/java/org/eclipse/jetty/http/GZIPContentDecoder.java index 8f79650da4f..24955bc6c5f 100644 --- a/jetty-http/src/main/java/org/eclipse/jetty/http/GZIPContentDecoder.java +++ b/jetty-http/src/main/java/org/eclipse/jetty/http/GZIPContentDecoder.java @@ -101,7 +101,6 @@ public class GZIPContentDecoder implements Destroyable if (size<=_inflated.capacity()) { BufferUtil.append(_inflated,chunk); - BufferUtil.put(chunk,_inflated); release(chunk); } else