Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 06580a4

Browse files
committed
Revert "add assertion for ASRelativeDimensionTypePercent value to be between 0-1 (#2009)"
This reverts commit ff2c47c. Reverting for 6.9 as this is currently incompatible with Pinterest.
1 parent 26e23d5 commit 06580a4

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

AsyncDisplayKit/Layout/ASDimension.mm

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,16 @@
1818
ASRelativeDimension ASRelativeDimensionMake(ASRelativeDimensionType type, CGFloat value)
1919
{
2020
if (type == ASRelativeDimensionTypePoints) { ASDisplayNodeCAssertPositiveReal(@"Points", value); }
21-
if (type == ASRelativeDimensionTypePercent) {
22-
ASDisplayNodeCAssert( 0 <= value && value <= 1.0, @"ASRelativeDimension percent value (%f) must be between 0 and 1.", value);
23-
}
2421
ASRelativeDimension dimension; dimension.type = type; dimension.value = value; return dimension;
2522
}
2623

2724
ASRelativeDimension ASRelativeDimensionMakeWithPoints(CGFloat points)
2825
{
29-
ASDisplayNodeCAssertPositiveReal(@"Points", points);
3026
return ASRelativeDimensionMake(ASRelativeDimensionTypePoints, points);
3127
}
3228

3329
ASRelativeDimension ASRelativeDimensionMakeWithPercent(CGFloat percent)
3430
{
35-
ASDisplayNodeCAssert( 0 <= percent && percent <= 1.0, @"ASRelativeDimension percent value (%f) must be between 0 and 1.", percent);
3631
return ASRelativeDimensionMake(ASRelativeDimensionTypePercent, percent);
3732
}
3833

0 commit comments

Comments
 (0)