From b83d64fc0d479989e17d383bf602e62fb44f4877 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Thu, 28 May 2020 18:32:28 -0400 Subject: [PATCH] Eeschema: remove superfluous updating of SCH_COMPONENT pins. Every time SCH_COMPONENT::GetDrawItem() was called, the schematic symbol pin table was updated. Under certain conditions, this happens inside loops so the amount of time spent rebuilding the pin table can add up. --- eeschema/sch_component.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/eeschema/sch_component.cpp b/eeschema/sch_component.cpp index 5bfd54ee30..7a8f53852f 100644 --- a/eeschema/sch_component.cpp +++ b/eeschema/sch_component.cpp @@ -1433,8 +1433,6 @@ void SCH_COMPONENT::GetConnectionPoints( std::vector< wxPoint >& aPoints ) const LIB_ITEM* SCH_COMPONENT::GetDrawItem( const wxPoint& aPosition, KICAD_T aType ) { - UpdatePins(); - if( m_part ) { // Calculate the position relative to the component.