Skip to content

Commit a1b55d3

Browse files
Remove equality overrides
1 parent c3cfbab commit a1b55d3

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

src/ImageSharp.Drawing/Shapes/RectangularPolygon.cs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -447,27 +447,5 @@ public IEnumerable<ISimplePath> Flatten()
447447
/// Returns the path as a closed path.
448448
/// </returns>
449449
IPath IPath.AsClosedPath() => this;
450-
451-
/// <summary>
452-
/// Returns whether the rectangles are equal.
453-
/// </summary>
454-
/// <param name="other">The other recentalge.</param>
455-
/// <returns>Returns a value indicating if the rectangles are equal.</returns>
456-
public bool Equals(RectangularPolygon other)
457-
=> other != null &&
458-
this.X == other.X &&
459-
this.Y == other.Y &&
460-
this.Height == other.Height &&
461-
this.Width == other.Width;
462-
463-
/// <inheritdoc/>
464-
public override bool Equals(object obj)
465-
466-
// TODO: It's very odd to do value type equality with a class like this.
467-
=> obj is RectangularPolygon other && this.Equals(other);
468-
469-
/// <inheritdoc/>
470-
public override int GetHashCode()
471-
=> HashCode.Combine(this.X, this.Y, this.Width, this.Height);
472450
}
473451
}

0 commit comments

Comments
 (0)