Clean up '#if CORE' in Utils.cs (#4397)

This commit is contained in:
Ilya authored and Dongbo Wang committed 2017-07-31 13:09:34 -07:00
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