diff --git a/pcbnew/dialogs/dialog_update_pcb.cpp b/pcbnew/dialogs/dialog_update_pcb.cpp index 39f7cbe458..ff35ec52cd 100644 --- a/pcbnew/dialogs/dialog_update_pcb.cpp +++ b/pcbnew/dialogs/dialog_update_pcb.cpp @@ -36,8 +36,7 @@ void DIALOG_UPDATE_PCB::PerformUpdate( bool aDryRun ) { m_messagePanel->Clear(); - REPORTER &reporter = m_messagePanel->Reporter(); - KIGFX::VIEW* view = m_frame->GetGalCanvas()->GetView(); + REPORTER& reporter = m_messagePanel->Reporter(); TOOL_MANAGER* toolManager = m_frame->GetToolManager(); BOARD* board = m_frame->GetBoard(); diff --git a/pcbnew/router/pns_kicad_iface.cpp b/pcbnew/router/pns_kicad_iface.cpp index 79f3ae68d9..db8c42580c 100644 --- a/pcbnew/router/pns_kicad_iface.cpp +++ b/pcbnew/router/pns_kicad_iface.cpp @@ -741,7 +741,6 @@ void PNS_KICAD_IFACE::SyncWorld( PNS::NODE *aWorld ) for( TRACK* t = m_board->m_Track; t; t = t->Next() ) { KICAD_T type = t->Type(); - PNS::ITEM* item = NULL; if( type == PCB_TRACE_T ) { std::unique_ptr< PNS::SEGMENT > segment = syncTrack( t ); diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index c7b6efa7d6..79f71a2205 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -756,8 +756,6 @@ void ROUTER_TOOL::performDragging() ctls->SetAutoPan( true ); - bool modified = false; - while( OPT_TOOL_EVENT evt = Wait() ) { ctls->ForceCursorPosition( false ); @@ -772,10 +770,7 @@ void ROUTER_TOOL::performDragging() else if( evt->IsClick( BUT_LEFT ) ) { if( m_router->FixRoute( m_endSnapPoint, m_endItem ) ) - { - modified = true; break; - } } handleCommonEvents( *evt );