From de21eb52680ee35d4065ee09b58bce495fb86731 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 4 Nov 2022 13:22:49 -0700 Subject: [PATCH] Remove errant debugging printf --- common/gal/opengl/opengl_gal.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp index 8f16c3e785..95b2fd75d6 100644 --- a/common/gal/opengl/opengl_gal.cpp +++ b/common/gal/opengl/opengl_gal.cpp @@ -1228,9 +1228,6 @@ void OPENGL_GAL::drawTriangulatedPolyset( const SHAPE_POLY_SET& aPolySet, m_currentManager->Shader( SHADER_NONE ); m_currentManager->Color( m_fillColor.r, m_fillColor.g, m_fillColor.b, m_fillColor.a ); - unsigned int polycount = aPolySet.TriangulatedPolyCount(); - std::vector tricounts; - if( m_isFillEnabled ) { int totalTriangleCount = 0; @@ -1238,7 +1235,6 @@ void OPENGL_GAL::drawTriangulatedPolyset( const SHAPE_POLY_SET& aPolySet, for( unsigned int j = 0; j < aPolySet.TriangulatedPolyCount(); ++j ) { auto triPoly = aPolySet.TriangulatedPolygon( j ); - tricounts.push_back( triPoly->GetTriangleCount() ); totalTriangleCount += triPoly->GetTriangleCount(); } @@ -1249,12 +1245,6 @@ void OPENGL_GAL::drawTriangulatedPolyset( const SHAPE_POLY_SET& aPolySet, { auto triPoly = aPolySet.TriangulatedPolygon( j ); - if( polycount != aPolySet.TriangulatedPolyCount() ) - printf("Incorrect polycount!\n"); - - if( tricounts[j] != triPoly->GetTriangleCount() ) - printf("Incorrect triangle count!\n"); - for( size_t i = 0; i < triPoly->GetTriangleCount(); i++ ) { VECTOR2I a, b, c;