From 65643e1b5dc09314126b63c4a0c0d6dce0409710 Mon Sep 17 00:00:00 2001 From: Ilya Date: Wed, 2 Aug 2017 20:59:39 +0400 Subject: [PATCH] Cleanup '#if CORE' in EtwActivity.cs (#4455) --- .../utils/tracing/EtwActivity.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/System.Management.Automation/utils/tracing/EtwActivity.cs b/src/System.Management.Automation/utils/tracing/EtwActivity.cs index 69e26f4496..d51d7b5784 100644 --- a/src/System.Management.Automation/utils/tracing/EtwActivity.cs +++ b/src/System.Management.Automation/utils/tracing/EtwActivity.cs @@ -43,13 +43,11 @@ namespace System.Management.Automation.Tracing /// public delegate void CallbackWithState(object state); -#if !CORECLR // System.Timers.Timer is not available in CoreCLR /// /// Delegates that defines a call back with two parameters; state and ElapsedEventArgs. /// It will be used in System.Timers.Timer scenarios. /// public delegate void CallbackWithStateAndArgs(object state, System.Timers.ElapsedEventArgs args); -#endif /// /// ETW events argument class @@ -175,7 +173,6 @@ namespace System.Management.Automation.Tracing this.asyncCallback = callback; } -#if !CORECLR // System.Timers.Timer is not available in CoreCLR /// /// It is to be used in System.Timers.Timer scenarios. /// @@ -211,7 +208,7 @@ namespace System.Management.Automation.Tracing Correlate(); this.callbackWithStateAndArgs(state, args); } -#endif + /// /// Correlate /// @@ -412,7 +409,6 @@ namespace System.Management.Automation.Tracing return new CorrelatedCallback(this, callback).Callback; } -#if !CORECLR // System.Timers.Timer is not available in CoreCLR /// /// Wraps a callback with one object param and one ElapsedEventArgs object /// This is menat to be used in System.Timers.Timer scenarios. @@ -427,7 +423,6 @@ namespace System.Management.Automation.Tracing } return new CorrelatedCallback(this, callback).Callback; } -#endif /// /// The provider where the tracing messages will be written to.