From 04e70a1cb97ebc11c1cc61e1668c2e76b51debb3 Mon Sep 17 00:00:00 2001 From: Scott Williams Date: Fri, 9 Jun 2017 20:19:57 +0100 Subject: [PATCH] Revert "add center property to rectangle" This reverts commit bdd54d39b39e8c40e123587530dc489a54daddea. --- src/SixLabors.Core/Primitives/Rectangle.cs | 10 ---------- src/SixLabors.Core/Primitives/RectangleF.cs | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/src/SixLabors.Core/Primitives/Rectangle.cs b/src/SixLabors.Core/Primitives/Rectangle.cs index e7fa218..735920f 100644 --- a/src/SixLabors.Core/Primitives/Rectangle.cs +++ b/src/SixLabors.Core/Primitives/Rectangle.cs @@ -110,16 +110,6 @@ public Size Size } } - /// - /// Gets the coordinates of the center of the rectangular region represented by this . - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public Point Center - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get => new Point(this.X + (this.Width / 2), this.Y + (this.Height / 2)); - } - /// /// Gets a value indicating whether this is empty. /// diff --git a/src/SixLabors.Core/Primitives/RectangleF.cs b/src/SixLabors.Core/Primitives/RectangleF.cs index f914091..36578a4 100644 --- a/src/SixLabors.Core/Primitives/RectangleF.cs +++ b/src/SixLabors.Core/Primitives/RectangleF.cs @@ -110,16 +110,6 @@ public SizeF Size } } - /// - /// Gets the coordinates of the center of the rectangular region represented by this . - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public PointF Center - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get => new PointF(this.X + (this.Width / 2), this.Y + (this.Height / 2)); - } - /// /// Gets a value indicating whether this is empty. ///