From 3afa1ca6591ef6c121add6b983d57a3f0ea8a40a Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Fri, 20 Feb 2026 12:11:43 +0300 Subject: [PATCH] Remove some unused vars. --- pcbnew/dialogs/dialog_footprint_checker.cpp | 4 ---- pcbnew/dialogs/panel_fp_lib_table.cpp | 2 -- pcbnew/drc/rule_editor/panel_drc_rule_editor.cpp | 5 ++--- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/pcbnew/dialogs/dialog_footprint_checker.cpp b/pcbnew/dialogs/dialog_footprint_checker.cpp index 55dda208d0..0496770bc1 100644 --- a/pcbnew/dialogs/dialog_footprint_checker.cpp +++ b/pcbnew/dialogs/dialog_footprint_checker.cpp @@ -89,15 +89,11 @@ void DIALOG_FOOTPRINT_CHECKER::runChecks() { BOARD* board = m_frame->GetBoard(); FOOTPRINT* footprint = board->GetFirstFootprint(); - wxString msg; deleteAllMarkers(); if( !footprint ) - { - msg = _( "No footprint loaded." ); return; - } auto errorHandler = [&]( const BOARD_ITEM* aItemA, const BOARD_ITEM* aItemB, const BOARD_ITEM* aItemC, diff --git a/pcbnew/dialogs/panel_fp_lib_table.cpp b/pcbnew/dialogs/panel_fp_lib_table.cpp index 9c2808f51e..98f3cb50ee 100644 --- a/pcbnew/dialogs/panel_fp_lib_table.cpp +++ b/pcbnew/dialogs/panel_fp_lib_table.cpp @@ -440,8 +440,6 @@ void PANEL_FP_LIB_TABLE::populatePluginList() bool PANEL_FP_LIB_TABLE::verifyTables() { - wxString msg; - for( int page = 0 ; page < (int) m_notebook->GetPageCount(); ++page ) { WX_GRID* grid = get_grid( page ); diff --git a/pcbnew/drc/rule_editor/panel_drc_rule_editor.cpp b/pcbnew/drc/rule_editor/panel_drc_rule_editor.cpp index 2ee2b2c67a..7390e6514a 100644 --- a/pcbnew/drc/rule_editor/panel_drc_rule_editor.cpp +++ b/pcbnew/drc/rule_editor/panel_drc_rule_editor.cpp @@ -480,9 +480,8 @@ void PANEL_DRC_RULE_EDITOR::onScintillaCharAdded( wxStyledTextEvent& aEvent ) m_textConditionCtrl->SearchAnchor(); - wxString rules = m_textConditionCtrl->GetText(); - int currentPos = m_textConditionCtrl->GetCurrentPos(); - int startPos = 0; + int currentPos = m_textConditionCtrl->GetCurrentPos(); + int startPos = 0; for( int line = m_textConditionCtrl->LineFromPosition( currentPos ); line > 0; line-- ) {