Skip to content

Commit f99764a

Browse files
committed
Removed unnecessary attributes
1 parent 8e099de commit f99764a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Microsoft.Toolkit/Diagnostics/ThrowHelper.ThrowExceptions.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System;
66
using System.Diagnostics.CodeAnalysis;
77
using System.Diagnostics.Contracts;
8-
using System.Runtime.CompilerServices;
98

109
#nullable enable
1110

@@ -38,7 +37,6 @@ private static string ToAssertString(this object? obj)
3837
/// <param name="name">The argument name.</param>
3938
/// <param name="message">The message to include in the exception.</param>
4039
/// <exception cref="ArgumentException">Thrown with <paramref name="message"/> and <paramref name="name"/>.</exception>
41-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
4240
[DoesNotReturn]
4341
private static void ThrowArgumentException(string name, string message)
4442
{
@@ -51,7 +49,6 @@ private static void ThrowArgumentException(string name, string message)
5149
/// <param name="name">The argument name.</param>
5250
/// <param name="message">The message to include in the exception.</param>
5351
/// <exception cref="ArgumentNullException">Thrown with <paramref name="name"/> and <paramref name="message"/>.</exception>
54-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
5552
[DoesNotReturn]
5653
private static void ThrowArgumentNullException(string name, string message)
5754
{
@@ -64,7 +61,6 @@ private static void ThrowArgumentNullException(string name, string message)
6461
/// <param name="name">The argument name.</param>
6562
/// <param name="message">The message to include in the exception.</param>
6663
/// <exception cref="ArgumentOutOfRangeException">Thrown with <paramref name="name"/> and <paramref name="message"/>.</exception>
67-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
6864
[DoesNotReturn]
6965
private static void ThrowArgumentOutOfRangeException(string name, string message)
7066
{

0 commit comments

Comments
 (0)