From 3d8288f919a309965a7ccd469d3fb44e6a029662 Mon Sep 17 00:00:00 2001 From: Franck Bourdonnec Date: Tue, 11 Jan 2022 13:19:36 +0100 Subject: [PATCH] Remove unused vars, verified there was no other intention with them; rectangle are OK --- eeschema/sch_plugins/altium/sch_altium_plugin.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/eeschema/sch_plugins/altium/sch_altium_plugin.cpp b/eeschema/sch_plugins/altium/sch_altium_plugin.cpp index 392921178b..5264a93c11 100644 --- a/eeschema/sch_plugins/altium/sch_altium_plugin.cpp +++ b/eeschema/sch_plugins/altium/sch_altium_plugin.cpp @@ -1260,9 +1260,6 @@ void SCH_ALTIUM_PLUGIN::ParseRoundRectangle( const std::map& if( elem.ownerpartid == ALTIUM_COMPONENT_NONE ) { - const VECTOR2I topLeft = { sheetBottomLeft.x, sheetTopRight.y }; - const VECTOR2I bottomRight = { sheetTopRight.x, sheetBottomLeft.y }; - // TODO: misses rounded edges SCH_SHAPE* rect = new SCH_SHAPE( SHAPE_T::RECT, SCH_LAYER_ID::LAYER_NOTES ); @@ -1444,9 +1441,6 @@ void SCH_ALTIUM_PLUGIN::ParseRectangle( const std::map& aPro if( elem.ownerpartid == ALTIUM_COMPONENT_NONE ) { - const VECTOR2I topLeft = { sheetBottomLeft.x, sheetTopRight.y }; - const VECTOR2I bottomRight = { sheetTopRight.x, sheetBottomLeft.y }; - SCH_SHAPE* rect = new SCH_SHAPE( SHAPE_T::RECT, SCH_LAYER_ID::LAYER_NOTES ); rect->SetPosition( sheetTopRight );