mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Remove deprecated init() function
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user