From 549939d96869cdfdae9c4c3f080729343de4ab97 Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Mon, 1 Oct 2018 13:16:15 -0700 Subject: [PATCH] Remove unused stopwatch (#7878) --- .../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 fa8b2f33f3..d19dca4c51 100644 --- a/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs +++ b/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs @@ -159,9 +159,10 @@ namespace System.Management.Automation 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;