From d2a1d64bfa8ac70bcee7308b64aa219dbc0f69cf Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Sat, 24 Nov 2018 11:53:33 -0800 Subject: [PATCH] Delete CORECLR ifdef (dotnet/corertdotnet/coreclr#6610) This ifdef should not be needed anymore. Signed-off-by: dotnet-bot Commit migrated from https://github.com/dotnet/coreclr/commit/e5763719c9b61d0c28e1cca5cb28ec55ce6535b8 --- .../src/System/Threading/CancellationToken.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/Threading/CancellationToken.cs b/src/libraries/System.Private.CoreLib/src/System/Threading/CancellationToken.cs index 8088434..5402749 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Threading/CancellationToken.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Threading/CancellationToken.cs @@ -263,13 +263,7 @@ namespace System.Threading /// is null. /// The associated CancellationTokenSource has been disposed. -#if CORECLR - private -#else - [MethodImpl(MethodImplOptions.NoInlining)] - public -#endif - CancellationTokenRegistration Register(Action callback, object state, bool useSynchronizationContext, bool useExecutionContext) + private CancellationTokenRegistration Register(Action callback, object state, bool useSynchronizationContext, bool useExecutionContext) { if (callback == null) throw new ArgumentNullException(nameof(callback)); -- 2.7.4