From cf9f6451b5e7f3fb2cd2659c8e5a144f8932a8a4 Mon Sep 17 00:00:00 2001 From: Scott Williams Date: Fri, 9 Jun 2017 20:19:57 +0100 Subject: [PATCH] [SL.Core] 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 e7fa21867..735920f0a 100644 --- a/src/SixLabors.Core/Primitives/Rectangle.cs +++ b/src/SixLabors.Core/Primitives/Rectangle.cs @@ -110,16 +110,6 @@ namespace SixLabors.Primitives } } - /// - /// 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 f914091b3..36578a455 100644 --- a/src/SixLabors.Core/Primitives/RectangleF.cs +++ b/src/SixLabors.Core/Primitives/RectangleF.cs @@ -110,16 +110,6 @@ namespace SixLabors.Primitives } } - /// - /// 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. ///