From: Dan Moseley Date: Sun, 2 Apr 2017 10:16:23 +0000 (-0700) Subject: Remove securitystate (dotnet/coreclr#10649) X-Git-Tag: submit/tizen/20210909.063632~11030^2~7452 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e14ec6321aaeeb935ad2c59f1056e60bd46dacf;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Remove securitystate (dotnet/coreclr#10649) Commit migrated from https://github.com/dotnet/coreclr/commit/0b1877f2e35a548f26fca05085232630e04b79b7 --- 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(); - } -}