From fa8b9006dddc4ecb25341c3c4c98535f60e6c245 Mon Sep 17 00:00:00 2001 From: Ilya Date: Tue, 1 Aug 2017 00:09:34 +0400 Subject: [PATCH] Clean up '#if CORE' in Utils.cs (#4397) --- src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs index 5482e4bbb..c53899420 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs @@ -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