From bb95761642438633823df212b3ed1ed3f905f170 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Fri, 2 Apr 2021 19:26:22 +0100 Subject: [PATCH] Remove unused variable item is already an SCH_ITEM, so the static cast is pointless. --- eeschema/tools/sch_drawing_tools.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/eeschema/tools/sch_drawing_tools.cpp b/eeschema/tools/sch_drawing_tools.cpp index 797ef01554..ccd7fa952c 100644 --- a/eeschema/tools/sch_drawing_tools.cpp +++ b/eeschema/tools/sch_drawing_tools.cpp @@ -1130,8 +1130,6 @@ int SCH_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent ) } else if( item && ( evt->IsAction( &ACTIONS::refreshPreview ) || evt->IsMotion() ) ) { - SCH_ITEM* sch_item = static_cast( item ); - item->SetPosition( (wxPoint) cursorPos ); item->AutoplaceFields( /* aScreen */ nullptr, /* aManual */ false ); updatePreview();