From 72baba2f0eaa29ac2ddaeb70d936a58d3746a5a6 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Sun, 31 Jan 2016 23:18:54 +0100 Subject: [PATCH] Removed 'force' parameter from Measure. --- src/Perspex.Layout/ILayoutable.cs | 6 +----- src/Perspex.Layout/Layoutable.cs | 8 ++------ 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/Perspex.Layout/ILayoutable.cs b/src/Perspex.Layout/ILayoutable.cs index 1a686e758f..3b276ef5ac 100644 --- a/src/Perspex.Layout/ILayoutable.cs +++ b/src/Perspex.Layout/ILayoutable.cs @@ -87,11 +87,7 @@ namespace Perspex.Layout /// Carries out a measure of the control. /// /// The available size for the control. - /// - /// If true, the control will be measured even if has not - /// changed from the last measure. - /// - void Measure(Size availableSize, bool force = false); + void Measure(Size availableSize); /// /// Arranges the control and its children. diff --git a/src/Perspex.Layout/Layoutable.cs b/src/Perspex.Layout/Layoutable.cs index a1ae8f5d56..ce2bd187b9 100644 --- a/src/Perspex.Layout/Layoutable.cs +++ b/src/Perspex.Layout/Layoutable.cs @@ -306,18 +306,14 @@ namespace Perspex.Layout /// Carries out a measure of the control. /// /// The available size for the control. - /// - /// If true, the control will be measured even if has not - /// changed from the last measure. - /// - public void Measure(Size availableSize, bool force = false) + public void Measure(Size availableSize) { if (double.IsNaN(availableSize.Width) || double.IsNaN(availableSize.Height)) { throw new InvalidOperationException("Cannot call Measure using a size with NaN values."); } - if (force || !IsMeasureValid || _previousMeasure != availableSize) + if (!IsMeasureValid || _previousMeasure != availableSize) { var previousDesiredSize = DesiredSize; var desiredSize = default(Size);