Browse Source

record struct already does this by value

Brandon Thetford 1 year ago
parent
commit
74c8920f32
1 changed files with 0 additions and 3 deletions
  1. 0 3
      Terminal.Gui/Drawing/Attribute.cs

+ 0 - 3
Terminal.Gui/Drawing/Attribute.cs

@@ -95,9 +95,6 @@ public readonly record struct Attribute : IEqualityOperators<Attribute, Attribut
     /// <param name="color">The color.</param>
     public Attribute (in Color color) : this (color, color) { }
 
-    /// <inheritdoc/>
-    public bool Equals (Attribute other) { return PlatformColor == other.PlatformColor && Foreground == other.Foreground && Background == other.Background; }
-
     /// <inheritdoc/>
     public override int GetHashCode () { return HashCode.Combine (PlatformColor, Foreground, Background); }