Merge pull request #1857 from slluis/fix-assembly-resolver
[mono.git] / mcs / class / corlib / System.Security / SecurityManager_mobile.cs
index 69b7e7fd4d0fdc314702818d241acca3aebd4b4e..07e78fdb27eb426dc600d9c6c4d84b0158092ab5 100644 (file)
@@ -55,9 +55,7 @@ namespace System.Security {
 
                // properties
 
-#if NET_4_0
                [Obsolete]
-#endif
                public static bool CheckExecutionRights {
                        get { return false; }
                        set { ; }
@@ -91,93 +89,71 @@ namespace System.Security {
                        origin = new ArrayList ();
                }
 
-#if NET_4_0
                [Obsolete]
-#endif
                public static bool IsGranted (IPermission perm)
                {
                        return true;
                }
 
-#if NET_4_0
                [Obsolete]
-#endif
                [SecurityPermission (SecurityAction.Demand, ControlPolicy = true)]
                public static PolicyLevel LoadPolicyLevelFromFile (string path, PolicyLevelType type)
                {
                        throw new NotSupportedException ();
                }
 
-#if NET_4_0
                [Obsolete]
-#endif
                [SecurityPermission (SecurityAction.Demand, ControlPolicy = true)]
                public static PolicyLevel LoadPolicyLevelFromString (string str, PolicyLevelType type)
                {
                        throw new NotSupportedException ();
                }
 
-#if NET_4_0
                [Obsolete]
-#endif
                [SecurityPermission (SecurityAction.Demand, ControlPolicy = true)]
                public static IEnumerator PolicyHierarchy ()
                {
                        throw new NotSupportedException ();
                }
 
-#if NET_4_0
                [Obsolete]
-#endif
                public static PermissionSet ResolvePolicy (Evidence evidence)
                {
                        throw new NotSupportedException ();
                }
 
-#if NET_4_0
                [Obsolete]
-#endif
                public static PermissionSet ResolvePolicy (Evidence[] evidences)
                {
                        throw new NotSupportedException ();
                }
 
-#if NET_4_0
                [Obsolete]
-#endif
                public static PermissionSet ResolveSystemPolicy (Evidence evidence)
                {
                        throw new NotSupportedException ();
                }
 
-#if NET_4_0
                [Obsolete]
-#endif
                public static PermissionSet ResolvePolicy (Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, out PermissionSet denied)
                {
                        throw new NotSupportedException ();
                }
 
-#if NET_4_0
                [Obsolete]
-#endif
                public static IEnumerator ResolvePolicyGroups (Evidence evidence)
                {
                        throw new NotSupportedException ();
                }
 
-#if NET_4_0
                [Obsolete]
-#endif
                [SecurityPermission (SecurityAction.Demand, ControlPolicy = true)]
                public static void SavePolicy () 
                {
                        throw new NotSupportedException ();
                }
 
-#if NET_4_0
                [Obsolete]
-#endif
                [SecurityPermission (SecurityAction.Demand, ControlPolicy = true)]
                public static void SavePolicyLevel (PolicyLevel level) 
                {
@@ -221,17 +197,6 @@ namespace System.Security {
                        throw new NotSupportedException ();
                }
 
-               internal static void ReflectedLinkDemandInvoke (MethodBase mb)
-               {
-                       throw new NotSupportedException ();
-               }
-
-               internal static bool ReflectedLinkDemandQuery (MethodBase mb)
-               {
-                       throw new NotSupportedException ();
-               }
-
-#if NET_4_0
                public static PermissionSet GetStandardSandbox (Evidence evidence)
                {
                        if (evidence == null)
@@ -244,8 +209,7 @@ namespace System.Security {
                {
                        throw new NotImplementedException ();
                }
-#endif
        }
 }
 
-#endif
\ No newline at end of file
+#endif