From 3cd7d67481aa864dc5ad3853582f7e29bfd03eb1 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Tue, 10 Dec 2024 19:35:06 +1000 Subject: [PATCH] Update TestIccProfiles.cs --- .../ImageSharp.Tests/ColorProfiles/Icc/TestIccProfiles.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/ImageSharp.Tests/ColorProfiles/Icc/TestIccProfiles.cs b/tests/ImageSharp.Tests/ColorProfiles/Icc/TestIccProfiles.cs index 49b1e66728..a89722dd92 100644 --- a/tests/ImageSharp.Tests/ColorProfiles/Icc/TestIccProfiles.cs +++ b/tests/ImageSharp.Tests/ColorProfiles/Icc/TestIccProfiles.cs @@ -22,13 +22,7 @@ internal static class TestIccProfiles public static Wacton.Unicolour.Configuration GetUnicolourConfiguration(string file) => UnicolourConfigurationCache.GetOrAdd( file, - f => - { - string p = GetFullPath(f); - bool b = File.Exists(p); - var profile = new Profile(p); - return new Wacton.Unicolour.Configuration(iccConfiguration: new(GetFullPath(f), Intent.Unspecified)); - }); + f => new Wacton.Unicolour.Configuration(iccConfiguration: new(GetFullPath(f), Intent.Unspecified))); private static string GetFullPath(string file) => Path.GetFullPath(Path.Combine(".", "TestDataIcc", "Profiles", file));