diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-27 22:58:27 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-27 22:58:27 +0300 |
commit | d12174359b847e041b35abbbecc6c0d6983c2524 (patch) | |
tree | b1923aa2cc19b397806467d436228f0428cf2540 | |
parent | c4cb1535c87ea2d44e61716af8058e769271b65e (diff) |
Refactoring.
-rw-r--r-- | NesTiler/Palette.cs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/NesTiler/Palette.cs b/NesTiler/Palette.cs index 2f6ddf6..224c29b 100644 --- a/NesTiler/Palette.cs +++ b/NesTiler/Palette.cs @@ -103,18 +103,6 @@ namespace com.clusterrr.Famicom.NesTiler {
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())
.OrderBy(c => c)
.ToArray();
@@ -125,7 +113,6 @@ namespace com.clusterrr.Famicom.NesTiler .ToArray();
var r = Enumerable.SequenceEqual(colors1, colors2);
return r;
- */
}
public bool Contains(Palette other)
|