From d12174359b847e041b35abbbecc6c0d6983c2524 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Thu, 27 Oct 2022 23:58:27 +0400 Subject: Refactoring. --- NesTiler/Palette.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/NesTiler/Palette.cs b/NesTiler/Palette.cs index 2f6ddf6..224c29b 100644 --- a/NesTiler/Palette.cs +++ b/NesTiler/Palette.cs @@ -101,18 +101,6 @@ namespace com.clusterrr.Famicom.NesTiler public bool Equals(Palette? other) { - if (other == null) return false; - var colors1 = colors.Where(c => c.HasValue) - .OrderBy(c => c!.Value.ToArgb()) - .Select(c => c!.Value) - .ToArray(); - var colors2 = new SKColor?[] { other[1], other[2], other[3] } - .Where(c => c.HasValue) - .OrderBy(c => c!.Value.ToArgb()) - .Select(c => c!.Value) - .ToArray(); - return Enumerable.SequenceEqual(colors1, colors2); - /* if (other == null) return false; var colors1 = colors.Where(c => c.HasValue) .Select(c => c!.Value.ToArgb()) @@ -125,7 +113,6 @@ namespace com.clusterrr.Famicom.NesTiler .ToArray(); var r = Enumerable.SequenceEqual(colors1, colors2); return r; - */ } public bool Contains(Palette other) -- cgit v1.2.3