From c183e3f342a1b1966ad36230c46c24e83175657f Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 17 Jun 2023 15:26:42 +0100 Subject: [PATCH] Cleanup. --- common/widgets/wx_grid.cpp | 2 +- pcbnew/fp_text.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/common/widgets/wx_grid.cpp b/common/widgets/wx_grid.cpp index 5b68bb3adb..f1b57ec3e3 100644 --- a/common/widgets/wx_grid.cpp +++ b/common/widgets/wx_grid.cpp @@ -462,7 +462,7 @@ bool WX_GRID::CancelPendingChanges() wxGridCellAttr* attr = GetCellAttr( row, col ); wxGridCellEditor* editor = attr->GetEditor( this, row, col ); - bool changed = editor->EndEdit( row, col, this, oldval, &newval ); + editor->EndEdit( row, col, this, oldval, &newval ); editor->DecRef(); attr->DecRef(); diff --git a/pcbnew/fp_text.cpp b/pcbnew/fp_text.cpp index 44ebcae310..c3415299fe 100644 --- a/pcbnew/fp_text.cpp +++ b/pcbnew/fp_text.cpp @@ -514,7 +514,6 @@ void FP_TEXT::TransformTextToPolySet( SHAPE_POLY_SET& aBuffer, int aClearance, i if( IsKnockout() ) { - TEXT_ATTRIBUTES attrs = GetAttributes(); SHAPE_POLY_SET finalPoly; int margin = GetKnockoutTextMargin( attrs.m_Size, penWidth );