diff --git a/src/Perspex.SceneGraph/Thickness.cs b/src/Perspex.SceneGraph/Thickness.cs index 26eaa5de74..b7847e6687 100644 --- a/src/Perspex.SceneGraph/Thickness.cs +++ b/src/Perspex.SceneGraph/Thickness.cs @@ -38,8 +38,6 @@ namespace Perspex /// The length that should be applied to all sides. public Thickness(double uniformLength) { - Contract.Requires(uniformLength >= 0); - _left = _top = _right = _bottom = uniformLength; } @@ -50,9 +48,6 @@ namespace Perspex /// The thickness on the top and bottom. public Thickness(double horizontal, double vertical) { - Contract.Requires(horizontal >= 0); - Contract.Requires(vertical >= 0); - _left = _right = horizontal; _top = _bottom = vertical; } @@ -66,11 +61,6 @@ namespace Perspex /// The thickness on the bottom. public Thickness(double left, double top, double right, double bottom) { - Contract.Requires(left >= 0); - Contract.Requires(top >= 0); - Contract.Requires(right >= 0); - Contract.Requires(bottom >= 0); - _left = left; _top = top; _right = right;