Delete CORECLR ifdef (dotnet/corert#6610)
authorJan Kotas <jkotas@microsoft.com>
Sat, 24 Nov 2018 19:53:33 +0000 (11:53 -0800)
committerJan Kotas <jkotas@microsoft.com>
Fri, 30 Nov 2018 06:41:32 +0000 (22:41 -0800)
This ifdef should not be needed anymore.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
src/System.Private.CoreLib/shared/System/Threading/CancellationToken.cs

index 8088434..5402749 100644 (file)
@@ -263,13 +263,7 @@ namespace System.Threading
         /// <exception cref="T:System.ArgumentNullException"><paramref name="callback"/> is null.</exception>
         /// <exception cref="T:System.ObjectDisposedException">The associated <see
         /// cref="T:System.Threading.CancellationTokenSource">CancellationTokenSource</see> has been disposed.</exception>
-#if CORECLR
-        private
-#else
-        [MethodImpl(MethodImplOptions.NoInlining)]
-        public
-#endif
-        CancellationTokenRegistration Register(Action<object> callback, object state, bool useSynchronizationContext, bool useExecutionContext)
+        private CancellationTokenRegistration Register(Action<object> callback, object state, bool useSynchronizationContext, bool useExecutionContext)
         {
             if (callback == null)
                 throw new ArgumentNullException(nameof(callback));