Delete moved file
authorJan Kotas <jkotas@microsoft.com>
Tue, 21 Mar 2017 02:30:56 +0000 (19:30 -0700)
committerJan Kotas <jkotas@microsoft.com>
Tue, 21 Mar 2017 02:30:56 +0000 (19:30 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/36c28a55dfce52331b1df0def2b67f0eb6044354

src/coreclr/src/mscorlib/System.Private.CoreLib.csproj
src/coreclr/src/mscorlib/src/SR.cs
src/coreclr/src/mscorlib/src/System/Security/SecurityException.cs [deleted file]

index f79391d..4d64021 100644 (file)
   </ItemGroup>
   <ItemGroup>
     <Compile Include="$(BclSourcesRoot)\System\Security\DynamicSecurityMethodAttribute.cs" />
-    <Compile Include="$(BclSourcesRoot)\System\Security\SecurityException.cs" />
     <Compile Include="$(BclSourcesRoot)\System\Security\SecurityState.cs" />
     <Compile Include="$(BclSourcesRoot)\System\Security\VerificationException.cs" />
   </ItemGroup>
index 963009c..6d0be7e 100644 (file)
@@ -1014,4 +1014,7 @@ internal static class SR
 
     internal static string InvalidOperation_UnknownEnumType =>
         Environment.GetResourceString("InvalidOperation_UnknownEnumType");
+
+    internal static string Arg_SecurityException =>
+        Environment.GetResourceString("Arg_SecurityException");
 }
diff --git a/src/coreclr/src/mscorlib/src/System/Security/SecurityException.cs b/src/coreclr/src/mscorlib/src/System/Security/SecurityException.cs
deleted file mode 100644 (file)
index 90fe053..0000000
+++ /dev/null
@@ -1,110 +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.
-
-/*=============================================================================
-**
-** 
-** 
-**
-**
-** Purpose: Exception class for security
-**
-**
-=============================================================================*/
-
-using System.Security;
-using System;
-using System.Runtime.Serialization;
-using System.Reflection;
-using System.Text;
-using System.Security.Policy;
-using System.IO;
-using System.Globalization;
-using System.Diagnostics.Contracts;
-
-namespace System.Security
-{
-    [Serializable]
-    public class SecurityException : SystemException
-    {
-        internal static string GetResString(string sResourceName)
-        {
-            return Environment.GetResourceString(sResourceName);
-        }
-
-#pragma warning disable 618
-        internal static Exception MakeSecurityException(AssemblyName asmName, Evidence asmEvidence, RuntimeMethodHandleInternal rmh, Object demand)
-#pragma warning restore 618
-        {
-            return new SecurityException(GetResString("Arg_SecurityException"));
-        }
-
-        public SecurityException()
-            : base(GetResString("Arg_SecurityException"))
-        {
-            SetErrorCode(System.__HResults.COR_E_SECURITY);
-        }
-
-        public SecurityException(String message)
-            : base(message)
-        {
-            // This is the constructor that gets called if you Assert but don't have permission to Assert.  (So don't assert in here.)
-            SetErrorCode(System.__HResults.COR_E_SECURITY);
-        }
-
-        public SecurityException(String message, Exception inner)
-            : base(message, inner)
-        {
-            SetErrorCode(System.__HResults.COR_E_SECURITY);
-        }
-
-        protected SecurityException(SerializationInfo info, StreamingContext context) : base(info, context)
-        {
-            if (info == null)
-                throw new ArgumentNullException(nameof(info));
-            Contract.EndContractBlock();
-        }
-
-        public override String ToString()
-        {
-            return base.ToString();
-        }
-
-        public override void GetObjectData(SerializationInfo info, StreamingContext context)
-        {
-            if (info == null)
-                throw new ArgumentNullException(nameof(info));
-            Contract.EndContractBlock();
-
-            base.GetObjectData(info, context);
-        }
-
-        // Stubs for surface area compatibility only
-        public SecurityException(String message, Type type)
-            : base(message)
-        {
-            SetErrorCode(System.__HResults.COR_E_SECURITY);
-            PermissionType = type;
-        }
-
-        public SecurityException(string message, System.Type type, string state)
-            : base(message)
-        {
-            SetErrorCode(System.__HResults.COR_E_SECURITY);
-            PermissionType = type;
-            PermissionState = state;
-        }
-
-        public object Demanded { get; set; }
-        public object DenySetInstance { get; set; }
-        public System.Reflection.AssemblyName FailedAssemblyInfo { get; set; }
-        public string GrantedSet { get; set; }
-        public System.Reflection.MethodInfo Method { get; set; }
-        public string PermissionState { get; set; }
-        public System.Type PermissionType { get; set; }
-        public object PermitOnlySetInstance { get; set; }
-        public string RefusedSet { get; set; }
-        public string Url { get; set; }
-    }
-}