Corrected debug information display call. Removed an unused variable.

This commit is contained in:
Maciej Suminski 2016-09-06 16:27:35 +02:00
parent 94aaa47583
commit f1e2a2c4c1
1 changed files with 3 additions and 5 deletions

View File

@ -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() );