diff --git a/src/System.Management.Automation/CoreCLR/CorePsStub.cs b/src/System.Management.Automation/CoreCLR/CorePsStub.cs index b761da5ca4..ffbc00a969 100644 --- a/src/System.Management.Automation/CoreCLR/CorePsStub.cs +++ b/src/System.Management.Automation/CoreCLR/CorePsStub.cs @@ -16,24 +16,6 @@ using Microsoft.Win32; // We use the stubs in this namespace to reduce #if/def in the code as much as possible. namespace Microsoft.PowerShell.CoreClr.Stubs { - #region Misc_Types - - /// - /// Stub for SecurityZone - /// - public enum SecurityZone - { - MyComputer = 0, - Intranet = 1, - Trusted = 2, - Internet = 3, - Untrusted = 4, - - NoZone = -1, - } - - #endregion Misc_Types - #region SystemManagementStubs // Summary: diff --git a/src/System.Management.Automation/System.Management.Automation.csproj b/src/System.Management.Automation/System.Management.Automation.csproj index a50e17332d..a90b0aa748 100644 --- a/src/System.Management.Automation/System.Management.Automation.csproj +++ b/src/System.Management.Automation/System.Management.Automation.csproj @@ -16,6 +16,7 @@ + diff --git a/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs b/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs index fcc33f4c44..780cc60dee 100644 --- a/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs +++ b/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs @@ -27,11 +27,6 @@ using Token = System.Management.Automation.Language.Token; using Microsoft.PowerShell.Telemetry.Internal; #endif -#if CORECLR -// Use stub for SecurityZone. -using Microsoft.PowerShell.CoreClr.Stubs; -#endif - // // Now define the set of commands for manipulating modules. // diff --git a/src/System.Management.Automation/namespaces/FileSystemProvider.cs b/src/System.Management.Automation/namespaces/FileSystemProvider.cs index c17b551de6..c4cb76d0c8 100644 --- a/src/System.Management.Automation/namespaces/FileSystemProvider.cs +++ b/src/System.Management.Automation/namespaces/FileSystemProvider.cs @@ -24,11 +24,6 @@ using Dbg = System.Management.Automation; using System.Runtime.InteropServices; using System.Management.Automation.Runspaces; -#if CORECLR -// Use stubs for SecurityZone -using Microsoft.PowerShell.CoreClr.Stubs; -#endif - namespace Microsoft.PowerShell.Commands { #region FileSystemProvider diff --git a/src/System.Management.Automation/security/SecurityManager.cs b/src/System.Management.Automation/security/SecurityManager.cs index 9c035c7531..59bb13d78a 100644 --- a/src/System.Management.Automation/security/SecurityManager.cs +++ b/src/System.Management.Automation/security/SecurityManager.cs @@ -14,11 +14,6 @@ using System.Management.Automation.Language; using System.Security; using System.Security.Cryptography.X509Certificates; -#if CORECLR -// Use stub for SecurityZone -using Microsoft.PowerShell.CoreClr.Stubs; -#endif - namespace Microsoft.PowerShell { /// diff --git a/src/System.Management.Automation/utils/ClrFacade.cs b/src/System.Management.Automation/utils/ClrFacade.cs index 52d97537f5..1f3ae196b0 100644 --- a/src/System.Management.Automation/utils/ClrFacade.cs +++ b/src/System.Management.Automation/utils/ClrFacade.cs @@ -21,7 +21,6 @@ using System.Runtime.InteropServices.ComTypes; #if CORECLR using System.Runtime.Loader; /* used in facade APIs related to assembly operations */ using System.Management.Automation.Host; /* used in facade API 'GetUninitializedObject' */ -using Microsoft.PowerShell.CoreClr.Stubs; /* used in facade API 'GetFileSecurityZone' */ using System.Management.Automation.Internal; using System.Text.RegularExpressions; #else