From 06ea0b50c83da08d973ffbb5bea83184347b7b07 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Fri, 16 Oct 2015 16:21:18 -0700 Subject: [PATCH] Remove deprecated init() function --- src/powershell-run/main.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/powershell-run/main.cs b/src/powershell-run/main.cs index d26a5c58d8..b5e76b6168 100644 --- a/src/powershell-run/main.cs +++ b/src/powershell-run/main.cs @@ -74,13 +74,6 @@ namespace Microsoft.Samples.PowerShell.Host set { this.exitCode = value; } } - // TODO:PSL this needs to be removed, it is only here for legacy testing purposes - public static void init() - { - string psBasePath = System.IO.Directory.GetCurrentDirectory(); - PowerShellAssemblyLoadContextInitializer.SetPowerShellAssemblyLoadContext(psBasePath); - } - // this is the unmanaged main entry point used by the CoreCLR host public static int UnmanagedMain(int argc, [MarshalAs(UnmanagedType.LPArray,ArraySubType=UnmanagedType.LPStr,SizeParamIndex=0)] String[] argv) { @@ -102,7 +95,6 @@ namespace Microsoft.Samples.PowerShell.Host /// This parameter is not used. private static void Main(string[] args) { - init(); ManagedMain(args); }