From 97d75ae8448706eaff8e330b0e147dcea65264fd Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 14 Aug 2024 13:41:03 -0700 Subject: [PATCH] Remove last cherry-pick Already existed in 8 branch. --- .../kimath/geometry/test_shape_line_chain.cpp | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/qa/tests/libs/kimath/geometry/test_shape_line_chain.cpp b/qa/tests/libs/kimath/geometry/test_shape_line_chain.cpp index dead9229d3..bbef14d4da 100644 --- a/qa/tests/libs/kimath/geometry/test_shape_line_chain.cpp +++ b/qa/tests/libs/kimath/geometry/test_shape_line_chain.cpp @@ -387,36 +387,6 @@ BOOST_AUTO_TEST_CASE( SimplifyDuplicatePoint ) } -BOOST_AUTO_TEST_CASE( SimplifyComplexChain ) -{ - SHAPE_LINE_CHAIN chain; - - // Append points - chain.Append( { 130000, 147320 } ); - chain.Append( { 125730, 147320 } ); - chain.Append( { 125730, 150630 } ); - chain.Append( { 128800, 153700 } ); - chain.Append( { 150300, 153700 } ); - chain.Append( { 151500, 152500 } ); - chain.Append( { 151500, 148900 } ); - chain.Append( { 149920, 147320 } ); - chain.Append( { 140000, 147320 } ); - - BOOST_CHECK( GEOM_TEST::IsOutlineValid( chain ) ); - BOOST_CHECK_EQUAL( chain.PointCount(), 9 ); - - // The chain should be open, so the points should not be simplified - // between the begining and the end. - chain.Simplify(); - - BOOST_CHECK_EQUAL( chain.PointCount(), 9 ); - - chain.SetClosed( true ); - chain.Simplify(); - - BOOST_CHECK_EQUAL( chain.PointCount(), 8 ); -} - BOOST_AUTO_TEST_CASE( SimplifyComplexChain ) { SHAPE_LINE_CHAIN chain;