From f1e2a2c4c1a2cc0ee02d17d08f168a153f4f59eb Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 6 Sep 2016 16:27:35 +0200 Subject: [PATCH] Corrected debug information display call. Removed an unused variable. --- pcbnew/router/pns_shove.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pcbnew/router/pns_shove.cpp b/pcbnew/router/pns_shove.cpp index 3bd35671f6..97dbcfc8e2 100644 --- a/pcbnew/router/pns_shove.cpp +++ b/pcbnew/router/pns_shove.cpp @@ -667,12 +667,12 @@ SHOVE::SHOVE_STATUS SHOVE::pushVia( VIA* aVia, const VECTOR2I& aForce, int aCurr pushedVia->SetRank( aCurrentRank - 1 ); - replaceItems( aVia, std::move( pushedVia ) ); - #ifdef DEBUG - m_logger.Log( pushedVia, 1, "pushed-via" ); + m_logger.Log( pushedVia.get(), 1, "pushed-via" ); #endif + replaceItems( aVia, std::move( pushedVia ) ); + for( LINE_PAIR lp : draggedLines ) { if( lp.first.Marker() & MK_HEAD ) @@ -1222,8 +1222,6 @@ SHOVE::SHOVE_STATUS SHOVE::ShoveMultiLines( const ITEM_SET& aHeadSet ) if( !pushLine( head ) ) return SH_INCOMPLETE; - VIA* headVia = NULL; - if( head.EndsWithVia() ) { std::unique_ptr< VIA > headVia = Clone( head.Via() );