mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Clean up '#if CORE' in Utils.cs (#4397)
This commit is contained in:
1 parent
e13dfc6b4e
commit
fa8b9006dd
1 file changed
-6
@@ -214,10 +214,6 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
|
||||
#region runtime methods
|
||||
internal static string GetSourceCodeInformation(bool withFileName, int depth)
|
||||
{
|
||||
#if CORECLR
|
||||
//return a dummy string as StackFrame won't be available on CoreCLR
|
||||
return string.Format(CultureInfo.CurrentUICulture, "{0}::{1} ", "Type", "Method");
|
||||
#else
|
||||
StackTrace trace = new StackTrace();
|
||||
StackFrame frame = trace.GetFrame(depth);
|
||||
//if (withFileName)
|
||||
@@ -231,8 +227,6 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
|
||||
return string.Format(CultureInfo.CurrentUICulture, "{0}::{1} ",
|
||||
frame.GetMethod().DeclaringType.Name,
|
||||
frame.GetMethod().Name);
|
||||
|
||||
#endif
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in new issue
Block a user