Merge pull request #2092 from kasthack/system-web-stuff-import
[mono.git] / mcs / class / System / System.Net / HttpConnection.cs
index 821f554f48173c63bcf4447dbc32b8424119450e..263bfcd65f78ebb748764e7e9718ae6a2a65b7c4 100644 (file)
@@ -29,7 +29,7 @@
 
 #if SECURITY_DEP
 
-#if MONOTOUCH
+#if MONOTOUCH || MONODROID
 using Mono.Security.Protocol.Tls;
 #else
 extern alias MonoSecurity;
@@ -209,16 +209,6 @@ namespace System.Net {
                        return o_stream;
                }
 
-               internal Socket Hijack ()
-               {
-                       // TODO: disable normal request/response.
-                       RemoveConnection ();
-                       var s = sock;
-                       sock = null;
-                       o_stream = null;
-                       return s;
-               }
-
                static void OnRead (IAsyncResult ares)
                {
                        HttpConnection cnc = (HttpConnection) ares.AsyncState;