[bcl] Remove NET_4_0 defines from class libs.
[mono.git] / mcs / class / System.Web.Abstractions / System.Web / HttpRequestBase.cs
index bf1d6f576aae614cb0cbdcb7175a7d5acd841fef..d71e791b87942d903e7d1c38a250c1ac41d50945 100644 (file)
@@ -40,16 +40,12 @@ using System.Security.Principal;
 using System.Text;
 using System.Web.Caching;
 
-#if NET_4_0
 using System.Security.Authentication.ExtendedProtection;
 using System.Web.Routing;
-#endif
 
 namespace System.Web
 {
-#if NET_4_0
         [TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
-#endif
        [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
        [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
        public abstract class HttpRequestBase
@@ -94,11 +90,9 @@ namespace System.Web
                public virtual string HttpMethod { get { NotImplemented (); return null; } }
 
                public virtual Stream InputStream { get { NotImplemented (); return null; } }
-#if NET_4_0
                // LAMESPEC: MSDN says NotImplementedException is thrown only when the request is
                // not IIS7WorkerRequest or ISAPIWorkerRequestInProc, but it is thrown always.
                public virtual ChannelBinding HttpChannelBinding { get { NotImplemented (); return null; } }
-#endif
                public virtual bool IsAuthenticated { get { NotImplemented (); return false; } }
 
                public virtual bool IsLocal { get { NotImplemented (); return false; } }
@@ -126,12 +120,10 @@ namespace System.Web
                public virtual string RawUrl { get { NotImplemented (); return null; } }
 
                public virtual string RequestType { get { NotImplemented (); return null; } set { NotImplemented (); } }
-#if NET_4_0
                public virtual RequestContext RequestContext {
                        get { NotImplemented (); return null; } 
                        internal set { NotImplemented (); }
                }
-#endif
                public virtual NameValueCollection ServerVariables { get { NotImplemented (); return null; } }
 
                public virtual int TotalBytes { get { NotImplemented (); return 0; } }