From 65c793ee69e0a7b74e0ff0eecfc191f14f2f496e Mon Sep 17 00:00:00 2001 From: J8118 Date: Thu, 9 Apr 2026 08:30:43 +0400 Subject: [PATCH] Remove commented-out duplicate code in YGMeasureTest Remove three commented-out YGNodeSetMeasureFunc calls that duplicate the active calls on adjacent lines. All three date from 2017 (fbd332d) and were left behind when the active lines were later updated. --- tests/YGMeasureTest.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/YGMeasureTest.cpp b/tests/YGMeasureTest.cpp index cdc9c6017f..e4ba343fde 100644 --- a/tests/YGMeasureTest.cpp +++ b/tests/YGMeasureTest.cpp @@ -245,7 +245,6 @@ TEST(YogaTest, measure_not_enough_size_should_wrap) { YGNodeRef root_child0 = YGNodeNew(); YGNodeStyleSetAlignSelf(root_child0, YGAlignFlexStart); - // YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text); YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text); YGNodeInsertChild(root, root_child0, 0); @@ -334,7 +333,6 @@ TEST(YogaTest, measure_flex_direction_column_and_padding) { YGNodeRef root_child0 = YGNodeNewWithConfig(config); YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text); - // YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text); YGNodeInsertChild(root, root_child0, 0); YGNodeRef root_child1 = YGNodeNewWithConfig(config); @@ -373,7 +371,6 @@ TEST(YogaTest, measure_flex_direction_row_no_padding) { YGNodeStyleSetHeight(root, 50); YGNodeRef root_child0 = YGNodeNewWithConfig(config); - // YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text); YGNodeSetMeasureFunc(root_child0, _simulate_wrapping_text); YGNodeInsertChild(root, root_child0, 0);