[System] Removal of the NET_2_0 in the source code
[mono.git] / mcs / class / System / System.Security.Permissions / PermissionHelper.cs
index 3413a15edc70802f9f911dd94332bfd457043d12..b53a5c1e4847c25607e075ffa1e0755576e2544e 100644 (file)
@@ -48,12 +48,6 @@ namespace System.Security.Permissions {
                        case PermissionState.None:
                                break;
                        case PermissionState.Unrestricted:
-#if !NET_2_0
-                               if (!allowUnrestricted) {
-                                       msg = Locale.GetText ("Unrestricted isn't not allowed for identity permissions.");
-                                       throw new ArgumentException (msg, "state");
-                               }
-#endif
                                break;
                        default:
                                msg = String.Format (Locale.GetText ("Invalid enum {0}"), state);