From 0ceeba4461702636559b735eb07962b2cb106925 Mon Sep 17 00:00:00 2001 From: Brian Popow Date: Sun, 12 Apr 2026 17:13:29 +0200 Subject: [PATCH] Remove no longer needed ColorScaleTo32Bit() --- src/ImageSharp/Formats/Exr/ExrDecoderCore.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/ImageSharp/Formats/Exr/ExrDecoderCore.cs b/src/ImageSharp/Formats/Exr/ExrDecoderCore.cs index 6120314284..62d3591f5b 100644 --- a/src/ImageSharp/Formats/Exr/ExrDecoderCore.cs +++ b/src/ImageSharp/Formats/Exr/ExrDecoderCore.cs @@ -4,7 +4,6 @@ using System.Buffers; using System.Buffers.Binary; -using System.Numerics; using System.Runtime.CompilerServices; using System.Text; using SixLabors.ImageSharp.Formats.Exr.Compression; @@ -21,8 +20,6 @@ namespace SixLabors.ImageSharp.Formats.Exr; /// internal sealed class ExrDecoderCore : ImageDecoderCore { - private const float Scale32Bit = 1f / 0xFFFFFFFF; - /// /// Reusable buffer. /// @@ -814,9 +811,4 @@ internal sealed class ExrDecoderCore : ImageDecoderCore return Unsafe.As(ref intValue); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static TPixel ColorScaleTo32Bit(uint r, uint g, uint b, uint a) - where TPixel : unmanaged, IPixel - => TPixel.FromScaledVector4(new Vector4(r, g, b, a) * Scale32Bit); }