From 5e36c480123e5a30e4aa0d43a67978e9221ee289 Mon Sep 17 00:00:00 2001 From: Chris Pavlina Date: Sat, 9 Jan 2016 16:59:01 -0500 Subject: [PATCH] Eeschema: remove dead code in autoplace (Coverity) CID 134043, 134094 in autoplace_fields: variable overwritten due to dead code that should have been removed. --- eeschema/autoplace_fields.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/eeschema/autoplace_fields.cpp b/eeschema/autoplace_fields.cpp index 62dab7a363..4d97cd8e83 100644 --- a/eeschema/autoplace_fields.cpp +++ b/eeschema/autoplace_fields.cpp @@ -643,10 +643,6 @@ protected: if( aDynamic ) { - if( m_component->GetTransform().y1 ) - field_height = aField->GetBoundingBox().GetWidth(); - else - field_height = aField->GetBoundingBox().GetHeight(); field_height = aField->GetBoundingBox().GetHeight(); padding = get_field_padding();