Browse Source

Remove bad debug check and refs

pull/2369/head
James Jackson-South 3 years ago
parent
commit
17041402c6
  1. 5
      src/ImageSharp/Common/Helpers/Shuffle/IComponentShuffle.cs
  2. 5
      src/ImageSharp/Common/Helpers/Shuffle/IPad3Shuffle4.cs
  3. 5
      src/ImageSharp/Common/Helpers/Shuffle/IShuffle3.cs
  4. 5
      src/ImageSharp/Common/Helpers/Shuffle/IShuffle4Slice3.cs
  5. 2
      tests/ImageSharp.Benchmarks/Color/Bulk/Shuffle3Channel.cs
  6. 2
      tests/ImageSharp.Benchmarks/Color/Bulk/Shuffle4Slice3Channel.cs

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

@ -47,10 +47,7 @@ internal interface IShuffle4 : IComponentShuffle
internal readonly struct DefaultShuffle4 : IShuffle4
{
public DefaultShuffle4(byte control)
{
DebugGuard.MustBeBetweenOrEqualTo<byte>(control, 0, 3, nameof(control));
this.Control = control;
}
=> this.Control = control;
public byte Control { get; }

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

@ -15,10 +15,7 @@ internal interface IPad3Shuffle4 : IComponentShuffle
internal readonly struct DefaultPad3Shuffle4 : IPad3Shuffle4
{
public DefaultPad3Shuffle4(byte control)
{
DebugGuard.MustBeBetweenOrEqualTo<byte>(control, 0, 3, nameof(control));
this.Control = control;
}
=> this.Control = control;
public byte Control { get; }

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

@ -15,10 +15,7 @@ internal interface IShuffle3 : IComponentShuffle
internal readonly struct DefaultShuffle3 : IShuffle3
{
public DefaultShuffle3(byte control)
{
DebugGuard.MustBeBetweenOrEqualTo<byte>(control, 0, 3, nameof(control));
this.Control = control;
}
=> this.Control = control;
public byte Control { get; }

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

@ -15,10 +15,7 @@ internal interface IShuffle4Slice3 : IComponentShuffle
internal readonly struct DefaultShuffle4Slice3 : IShuffle4Slice3
{
public DefaultShuffle4Slice3(byte control)
{
DebugGuard.MustBeBetweenOrEqualTo<byte>(control, 0, 3, nameof(control));
this.Control = control;
}
=> this.Control = control;
public byte Control { get; }

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

@ -1,9 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
using System.Runtime.InteropServices;
using BenchmarkDotNet.Attributes;
using Iced.Intel;
namespace SixLabors.ImageSharp.Benchmarks.ColorSpaces.Bulk;

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

@ -1,9 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
using System.Runtime.InteropServices;
using BenchmarkDotNet.Attributes;
using Iced.Intel;
namespace SixLabors.ImageSharp.Benchmarks.ColorSpaces.Bulk;

Loading…
Cancel
Save