Skip to content

Commit 0ceeba4

Browse files
committed
Remove no longer needed ColorScaleTo32Bit()
1 parent 5926455 commit 0ceeba4

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/ImageSharp/Formats/Exr/ExrDecoderCore.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
using System.Buffers;
66
using System.Buffers.Binary;
7-
using System.Numerics;
87
using System.Runtime.CompilerServices;
98
using System.Text;
109
using SixLabors.ImageSharp.Formats.Exr.Compression;
@@ -21,8 +20,6 @@ namespace SixLabors.ImageSharp.Formats.Exr;
2120
/// </summary>
2221
internal sealed class ExrDecoderCore : ImageDecoderCore
2322
{
24-
private const float Scale32Bit = 1f / 0xFFFFFFFF;
25-
2623
/// <summary>
2724
/// Reusable buffer.
2825
/// </summary>
@@ -814,9 +811,4 @@ private float ReadSingle(BufferedReadStream stream)
814811

815812
return Unsafe.As<int, float>(ref intValue);
816813
}
817-
818-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
819-
public static TPixel ColorScaleTo32Bit<TPixel>(uint r, uint g, uint b, uint a)
820-
where TPixel : unmanaged, IPixel<TPixel>
821-
=> TPixel.FromScaledVector4(new Vector4(r, g, b, a) * Scale32Bit);
822814
}

0 commit comments

Comments
 (0)