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.
This commit is contained in:
Wayne Stambaugh 2020-05-28 18:32:28 -04:00
parent e8524163db
commit b83d64fc0d
1 changed files with 0 additions and 2 deletions

View File

@ -1433,8 +1433,6 @@ void SCH_COMPONENT::GetConnectionPoints( std::vector< wxPoint >& aPoints ) const
LIB_ITEM* SCH_COMPONENT::GetDrawItem( const wxPoint& aPosition, KICAD_T aType ) LIB_ITEM* SCH_COMPONENT::GetDrawItem( const wxPoint& aPosition, KICAD_T aType )
{ {
UpdatePins();
if( m_part ) if( m_part )
{ {
// Calculate the position relative to the component. // Calculate the position relative to the component.