Browse Source
Merge pull request #2936 from stefannikolei/sn/ref/iccclut
Remove unneeded loop in IccClut
pull/2938/head
James Jackson-South
8 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
9 deletions
-
src/ImageSharp/Metadata/Profiles/ICC/Various/IccClut.cs
|
|
|
@ -91,15 +91,7 @@ internal sealed class IccClut : IEquatable<IccClut> |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
for (int i = 0; i < this.Values.Length; i++) |
|
|
|
{ |
|
|
|
if (!this.Values.SequenceEqual(other.Values)) |
|
|
|
{ |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return true; |
|
|
|
return this.Values.SequenceEqual(other.Values); |
|
|
|
} |
|
|
|
|
|
|
|
private void CheckValues() |
|
|
|
|