Skip to content

Commit 1704140

Browse files
Remove bad debug check and refs
1 parent aed484a commit 1704140

File tree

6 files changed

+4
-20
lines changed

6 files changed

+4
-20
lines changed

src/ImageSharp/Common/Helpers/Shuffle/IComponentShuffle.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ internal interface IShuffle4 : IComponentShuffle
4747
internal readonly struct DefaultShuffle4 : IShuffle4
4848
{
4949
public DefaultShuffle4(byte control)
50-
{
51-
DebugGuard.MustBeBetweenOrEqualTo<byte>(control, 0, 3, nameof(control));
52-
this.Control = control;
53-
}
50+
=> this.Control = control;
5451

5552
public byte Control { get; }
5653

src/ImageSharp/Common/Helpers/Shuffle/IPad3Shuffle4.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ internal interface IPad3Shuffle4 : IComponentShuffle
1515
internal readonly struct DefaultPad3Shuffle4 : IPad3Shuffle4
1616
{
1717
public DefaultPad3Shuffle4(byte control)
18-
{
19-
DebugGuard.MustBeBetweenOrEqualTo<byte>(control, 0, 3, nameof(control));
20-
this.Control = control;
21-
}
18+
=> this.Control = control;
2219

2320
public byte Control { get; }
2421

src/ImageSharp/Common/Helpers/Shuffle/IShuffle3.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ internal interface IShuffle3 : IComponentShuffle
1515
internal readonly struct DefaultShuffle3 : IShuffle3
1616
{
1717
public DefaultShuffle3(byte control)
18-
{
19-
DebugGuard.MustBeBetweenOrEqualTo<byte>(control, 0, 3, nameof(control));
20-
this.Control = control;
21-
}
18+
=> this.Control = control;
2219

2320
public byte Control { get; }
2421

src/ImageSharp/Common/Helpers/Shuffle/IShuffle4Slice3.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ internal interface IShuffle4Slice3 : IComponentShuffle
1515
internal readonly struct DefaultShuffle4Slice3 : IShuffle4Slice3
1616
{
1717
public DefaultShuffle4Slice3(byte control)
18-
{
19-
DebugGuard.MustBeBetweenOrEqualTo<byte>(control, 0, 3, nameof(control));
20-
this.Control = control;
21-
}
18+
=> this.Control = control;
2219

2320
public byte Control { get; }
2421

tests/ImageSharp.Benchmarks/Color/Bulk/Shuffle3Channel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Six Labors Split License.
33

4-
using System.Runtime.InteropServices;
54
using BenchmarkDotNet.Attributes;
6-
using Iced.Intel;
75

86
namespace SixLabors.ImageSharp.Benchmarks.ColorSpaces.Bulk;
97

tests/ImageSharp.Benchmarks/Color/Bulk/Shuffle4Slice3Channel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Six Labors Split License.
33

4-
using System.Runtime.InteropServices;
54
using BenchmarkDotNet.Attributes;
6-
using Iced.Intel;
75

86
namespace SixLabors.ImageSharp.Benchmarks.ColorSpaces.Bulk;
97

0 commit comments

Comments
 (0)