From 2d762acc7df61f153dd04ec85bc2feb4cf7c4f52 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 1 Sep 2023 23:46:14 +0100 Subject: [PATCH] Remove accidentally-checked-in debugging code. --- pcbnew/board_commit.cpp | 7 ------- pcbnew/plugins/kicad/pcb_plugin.cpp | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/pcbnew/board_commit.cpp b/pcbnew/board_commit.cpp index bf3dab51a8..6e5d580a10 100644 --- a/pcbnew/board_commit.cpp +++ b/pcbnew/board_commit.cpp @@ -411,13 +411,6 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags ) if( view ) view->Update( boardItem ); - if( boardItem->Type() == PCB_FOOTPRINT_T ) - { - PAD* pad1 = static_cast( boardItem )->Pads()[0]; - bool padEntered = pad1->IsEntered(); - wxString padNumber = pad1->GetNumber(); - } - itemsChanged.push_back( boardItem ); // if no undo entry is needed, the copy would create a memory leak diff --git a/pcbnew/plugins/kicad/pcb_plugin.cpp b/pcbnew/plugins/kicad/pcb_plugin.cpp index 68bd8f24fb..5d8337a049 100644 --- a/pcbnew/plugins/kicad/pcb_plugin.cpp +++ b/pcbnew/plugins/kicad/pcb_plugin.cpp @@ -1581,7 +1581,7 @@ void PCB_PLUGIN::format( const PAD* aPad, int aNestLevel ) const { StrPrintf( &output, " (net %d %s)", m_mapping->Translate( aPad->GetNetCode() ), m_out->Quotew( aPad->GetNetname() ).c_str() ); - } + } // Pin functions and types are closely related to nets, so if CTL_OMIT_NETS is set, omit // them as well (for instance when saved from library editor).