src/java.base/share/classes/java/net/HttpConnectSocketImpl.java
branchniosocketimpl-branch
changeset 57171 d8ed7335dadd
parent 57167 82874527373e
child 57172 63ab5af5d009
--- a/src/java.base/share/classes/java/net/HttpConnectSocketImpl.java	Sat Feb 09 08:54:02 2019 +0000
+++ b/src/java.base/share/classes/java/net/HttpConnectSocketImpl.java	Sat Feb 09 19:16:30 2019 +0000
@@ -330,18 +330,4 @@
     public SocketImpl delegate() {
         return delegate;
     }
-
-    @Override
-    public SocketImpl newInstance() {
-        if (delegate instanceof PlainSocketImpl)
-            return new HttpConnectSocketImpl(new PlainSocketImpl());
-        else if (delegate instanceof NioSocketImpl)
-            return new HttpConnectSocketImpl(new NioSocketImpl(false));
-        throw new InternalError();
-    }
-
-    @Override
-    public void postCustomAccept() {
-        // TODO
-    }
 }