Remove unused variable

item is already an SCH_ITEM, so the static cast is pointless.
This commit is contained in:
Ian McInerney 2021-04-02 19:26:22 +01:00
parent 1db5e2bc96
commit bb95761642
1 changed files with 0 additions and 2 deletions

View File

@ -1130,8 +1130,6 @@ int SCH_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent )
} }
else if( item && ( evt->IsAction( &ACTIONS::refreshPreview ) || evt->IsMotion() ) ) else if( item && ( evt->IsAction( &ACTIONS::refreshPreview ) || evt->IsMotion() ) )
{ {
SCH_ITEM* sch_item = static_cast<SCH_ITEM*>( item );
item->SetPosition( (wxPoint) cursorPos ); item->SetPosition( (wxPoint) cursorPos );
item->AutoplaceFields( /* aScreen */ nullptr, /* aManual */ false ); item->AutoplaceFields( /* aScreen */ nullptr, /* aManual */ false );
updatePreview(); updatePreview();