Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
Remove complex throw helper pattern of having intermediate create met…
Browse files Browse the repository at this point in the history
…hod for the exception, this is for old jit
  • Loading branch information
safern committed Mar 19, 2018
1 parent 23b819e commit 8eb58e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/System.Collections/src/System/Collections/ThrowHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ namespace System.Collections
{
internal static class ThrowHelper
{
internal static void ThrowInvalidOperationException_ConcurrentOperationsNotSupported() => throw CreateInvalidOperationException_ConcurrentOperationsNotSupported();
[MethodImpl(MethodImplOptions.NoInlining)]
internal static Exception CreateInvalidOperationException_ConcurrentOperationsNotSupported() => new InvalidOperationException(SR.InvalidOperation_ConcurrentOperationsNotSupported);
internal static void ThrowInvalidOperationException_ConcurrentOperationsNotSupported() => throw new InvalidOperationException(SR.InvalidOperation_ConcurrentOperationsNotSupported);
}
}

0 comments on commit 8eb58e7

Please sign in to comment.