Remove deprecated init() function

This commit is contained in:
Andrew Schwartzmeyer
2015-10-16 16:21:18 -07:00
parent 556bdda1c7
commit 06ea0b50c8
-8
View File
@@ -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
/// <param name="args">This parameter is not used.</param>
private static void Main(string[] args)
{
init();
ManagedMain(args);
}