From d3de80c307467a982a1f872a639c8b5fe51441c3 Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Thu, 27 Sep 2018 10:12:49 -0700 Subject: [PATCH] Remove unused stopwatch --- .../engine/runtime/CompiledScriptBlock.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs b/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs index fa8b2f33f38..d19dca4c517 100644 --- a/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs +++ b/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs @@ -159,9 +159,10 @@ private void CompileOptimized() private void ReallyCompile(bool optimize) { +#if LEGACYTELEMETRY var sw = new Stopwatch(); sw.Start(); - +#endif if (!IsProductCode && SecuritySupport.IsProductBinary(((Ast)_ast).Extent.File)) { this.IsProductCode = true;