test/jdk/java/net/httpclient/http2/server/Http2TestServerConnection.java
branchhttp-client-branch
changeset 55796 dfc99ea2b65a
parent 55763 634d8e14c172
child 55799 c71f52f48d97
--- a/test/jdk/java/net/httpclient/http2/server/Http2TestServerConnection.java	Thu Nov 09 14:28:00 2017 +0000
+++ b/test/jdk/java/net/httpclient/http2/server/Http2TestServerConnection.java	Thu Nov 09 20:04:33 2017 +0300
@@ -39,7 +39,6 @@
 import java.util.concurrent.ExecutorService;
 import java.util.function.Consumer;
 import jdk.incubator.http.internal.common.ByteBufferReference;
-import jdk.incubator.http.internal.common.BufferHandler;
 import jdk.incubator.http.internal.common.HttpHeadersImpl;
 import jdk.incubator.http.internal.common.Queue;
 import jdk.incubator.http.internal.frame.DataFrame;
@@ -236,22 +235,6 @@
         exec.submit(this::writeLoop);
     }
 
-    static class BufferPool implements BufferHandler {
-
-        public void setMinBufferSize(int size) {
-        }
-
-        @Override
-        public ByteBuffer getBuffer() {
-            int size = 32 * 1024;
-            return ByteBuffer.allocate(size);
-        }
-
-        @Override
-        public void returnBuffer(ByteBuffer buffer) {
-        }
-    }
-
     private void writeFrame(Http2Frame frame) throws IOException {
         ByteBufferReference[] refs = new FramesEncoder().encodeFrame(frame);
         //System.err.println("TestServer: Writing frame " + frame.toString());