Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in...
[mono.git] / mcs / class / System.Web.Services / System.Web.Services.Protocols / HttpWebClientProtocol.cs
index 2b653064d915935f7f5a299d354c66007746f695..78c1da0bf7b721fba4c5f718575ad61c2db67a59 100644 (file)
@@ -50,9 +50,7 @@ namespace System.Web.Services.Protocols {
                IWebProxy proxy;
                string userAgent;
                
-#if NET_1_1
                bool _unsafeAuthenticated;
-#endif
                #endregion
 
                #region Constructors
@@ -111,26 +109,20 @@ namespace System.Web.Services.Protocols {
                }
 
                [WebServicesDescription ("Sets the user agent http header for the request.")]
-#if NET_2_0
                [Browsable (false)]
                [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
-#endif
                public string UserAgent {
                        get { return userAgent; }
                        set { userAgent = value; }
                }
                
-#if NET_1_1
-#if NET_2_0
                [Browsable (false)]
                [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
-#endif
                public bool UnsafeAuthenticatedConnectionSharing
                {
                        get { return _unsafeAuthenticated; }
                        set { _unsafeAuthenticated = value; }
                }
-#endif
 
                #endregion // Properties
 
@@ -162,10 +154,8 @@ namespace System.Web.Services.Protocols {
                        HttpWebRequest request = req as HttpWebRequest;
                        if (request == null)
                                return req;
-#if NET_2_0
                        if (enableDecompression)
                                request.AutomaticDecompression = DecompressionMethods.GZip;
-#endif
 
                        request.AllowAutoRedirect = allowAutoRedirect;
                        if (clientCertificates != null)
@@ -177,10 +167,6 @@ namespace System.Web.Services.Protocols {
 
                        request.UserAgent = userAgent;
 
-#if NET_1_1
-               //      request.UnsafeAuthenticatedConnectionSharing = _unsafeAuthenticated;
-#endif
-
                        return request;
                }