Skip to content

Commit 47ff841

Browse files
committed
Remove unused method
1 parent 507934a commit 47ff841

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/SharedInfrastructure/ThrowHelper.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,13 @@ namespace SixLabors;
1313
internal static partial class ThrowHelper
1414
#pragma warning restore RCS1043 // Remove 'partial' modifier from type with a single part.
1515
{
16-
/// <summary>
17-
/// Throws an <see cref="ArgumentNullException"/> when <see cref="Guard.NotNull{TValue}"/> fails.
18-
/// </summary>
19-
/// <param name="name">The argument name.</param>
20-
[DoesNotReturn]
21-
public static void ThrowArgumentNullExceptionForNotNull(string name)
22-
=> ThrowArgumentNullException(name, $"Parameter \"{name}\" must be not null.");
23-
2416
/// <summary>
2517
/// Throws an <see cref="ArgumentException"/> when <see cref="Guard.NotNullOrWhiteSpace"/> fails.
2618
/// </summary>
2719
/// <param name="value">The value.</param>
2820
/// <param name="name">The argument name.</param>
2921
[DoesNotReturn]
30-
public static void ThrowArgumentExceptionForNotNullOrWhitespace(string value, string name)
22+
public static void ThrowArgumentExceptionForNotNullOrWhitespace(string? value, string name)
3123
{
3224
if (value is null)
3325
{

0 commit comments

Comments
 (0)