diff options
author | Dan Moseley <danmose@microsoft.com> | 2017-04-02 03:16:23 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-04-02 03:16:23 -0700 |
commit | 0b1877f2e35a548f26fca05085232630e04b79b7 (patch) | |
tree | 6ca087dcda31f998bb34078cbed4d95626563ac8 /src | |
parent | b07ed5efbbc94a0a3dad203e0a88d25c746a6c93 (diff) | |
download | coreclr-0b1877f2e35a548f26fca05085232630e04b79b7.tar.gz coreclr-0b1877f2e35a548f26fca05085232630e04b79b7.tar.bz2 coreclr-0b1877f2e35a548f26fca05085232630e04b79b7.zip |
Remove securitystate (#10649)
Diffstat (limited to 'src')
-rw-r--r-- | src/mscorlib/System.Private.CoreLib.csproj | 1 | ||||
-rw-r--r-- | src/mscorlib/src/System/AppDomainManager.cs | 5 | ||||
-rw-r--r-- | src/mscorlib/src/System/Security/SecurityState.cs | 25 |
3 files changed, 0 insertions, 31 deletions
diff --git a/src/mscorlib/System.Private.CoreLib.csproj b/src/mscorlib/System.Private.CoreLib.csproj index a5cce4fbfd..2153d7899c 100644 --- a/src/mscorlib/System.Private.CoreLib.csproj +++ b/src/mscorlib/System.Private.CoreLib.csproj @@ -657,7 +657,6 @@ </ItemGroup> <ItemGroup> <Compile Include="$(BclSourcesRoot)\System\Security\DynamicSecurityMethodAttribute.cs" /> - <Compile Include="$(BclSourcesRoot)\System\Security\SecurityState.cs" /> <Compile Include="$(BclSourcesRoot)\System\Security\VerificationException.cs" /> </ItemGroup> <ItemGroup> diff --git a/src/mscorlib/src/System/AppDomainManager.cs b/src/mscorlib/src/System/AppDomainManager.cs index 1c7fb08d98..830de29c16 100644 --- a/src/mscorlib/src/System/AppDomainManager.cs +++ b/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/mscorlib/src/System/Security/SecurityState.cs b/src/mscorlib/src/System/Security/SecurityState.cs deleted file mode 100644 index 5f42011094..0000000000 --- a/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(); - } -} |