diff --git a/yoga/algorithm/CalculateLayout.cpp b/yoga/algorithm/CalculateLayout.cpp index b9758d8cfe..54d03e1137 100644 --- a/yoga/algorithm/CalculateLayout.cpp +++ b/yoga/algorithm/CalculateLayout.cpp @@ -10,7 +10,6 @@ #include #include #include -#include #include @@ -693,13 +692,6 @@ static float distributeFreeSpaceSecondPass( } } - yoga::assertFatalWithNode( - currentLineChild, - yoga::isDefined(updatedMainSize), - ("updatedMainSize is undefined. mainAxisOwnerSize: " + - std::to_string(mainAxisOwnerSize)) - .c_str()); - deltaFreeSpace += updatedMainSize - childFlexBasis; const float marginMain = currentLineChild->style().computeMarginForAxis( @@ -793,20 +785,6 @@ static float distributeFreeSpaceSecondPass( const bool isLayoutPass = performLayout && !requiresStretchLayout; // Recursively call the layout algorithm for this child with the updated // main size. - - yoga::assertFatalWithNode( - currentLineChild, - yoga::isUndefined(childMainSize) - ? childMainSizingMode == SizingMode::MaxContent - : true, - "childMainSize is undefined so childMainSizingMode must be MaxContent"); - yoga::assertFatalWithNode( - currentLineChild, - yoga::isUndefined(childCrossSize) - ? childCrossSizingMode == SizingMode::MaxContent - : true, - "childCrossSize is undefined so childCrossSizingMode must be MaxContent"); - calculateLayoutInternal( currentLineChild, childWidth,