Remove some unused vars.

This commit is contained in:
Alex Shvartzkop
2026-02-20 12:11:43 +03:00
parent 405d299dd5
commit 3afa1ca659
3 changed files with 2 additions and 9 deletions
@@ -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,
-2
View File
@@ -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 );
@@ -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-- )
{