From 5e14ec6321aaeeb935ad2c59f1056e60bd46dacf Mon Sep 17 00:00:00 2001 From: Dan Moseley Date: Sun, 2 Apr 2017 03:16:23 -0700 Subject: [PATCH] Remove securitystate (dotnet/coreclr#10649) Commit migrated from https://github.com/dotnet/coreclr/commit/0b1877f2e35a548f26fca05085232630e04b79b7 --- .../src/mscorlib/System.Private.CoreLib.csproj | 1 - .../src/mscorlib/src/System/AppDomainManager.cs | 5 ----- .../mscorlib/src/System/Security/SecurityState.cs | 25 ---------------------- 3 files changed, 31 deletions(-) delete mode 100644 src/coreclr/src/mscorlib/src/System/Security/SecurityState.cs diff --git a/src/coreclr/src/mscorlib/System.Private.CoreLib.csproj b/src/coreclr/src/mscorlib/System.Private.CoreLib.csproj index a5cce4f..2153d78 100644 --- a/src/coreclr/src/mscorlib/System.Private.CoreLib.csproj +++ b/src/coreclr/src/mscorlib/System.Private.CoreLib.csproj @@ -657,7 +657,6 @@ - diff --git a/src/coreclr/src/mscorlib/src/System/AppDomainManager.cs b/src/coreclr/src/mscorlib/src/System/AppDomainManager.cs index 1c7fb08..830de29 100644 --- a/src/coreclr/src/mscorlib/src/System/AppDomainManager.cs +++ b/src/coreclr/src/mscorlib/src/System/AppDomainManager.cs @@ -55,10 +55,5 @@ namespace System return AppDomain.CurrentDomain.DomainManager; } } - - public virtual bool CheckSecuritySettings(SecurityState state) - { - return false; - } } } diff --git a/src/coreclr/src/mscorlib/src/System/Security/SecurityState.cs b/src/coreclr/src/mscorlib/src/System/Security/SecurityState.cs deleted file mode 100644 index 5f42011..0000000 --- a/src/coreclr/src/mscorlib/src/System/Security/SecurityState.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System; -using System.Security; - -namespace System.Security -{ - internal abstract class SecurityState - { - protected SecurityState() { } - - public bool IsStateAvailable() - { - AppDomainManager domainManager = AppDomainManager.CurrentAppDomainManager; - - // CheckSecuritySettings only when appdomainManager is present. So if there is no - // appDomain Manager return true as by default coreclr runs in fulltrust. - return domainManager != null ? domainManager.CheckSecuritySettings(this) : true; - } - // override this function and throw the appropriate - public abstract void EnsureState(); - } -} -- 2.7.4