From d257dc5b4eb205c342a50ef7b2ff344d2c873433 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 7 Dec 2023 13:16:17 +0000 Subject: [PATCH] Cleanup unused variables. --- common/gestfich.cpp | 1 - pcbnew/dialogs/dialog_create_array.cpp | 9 +-------- pcbnew/dialogs/dialog_create_array.h | 2 -- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/common/gestfich.cpp b/common/gestfich.cpp index bc526defac..77b11db3fa 100644 --- a/common/gestfich.cpp +++ b/common/gestfich.cpp @@ -194,7 +194,6 @@ int ExecuteFile( const wxString& aEditorName, const wxString& aFileName, wxProce if( wxFileExists( fullEditorName ) ) { - int i = 0; std::vector args; args.emplace_back( fullEditorName.wc_str() ); diff --git a/pcbnew/dialogs/dialog_create_array.cpp b/pcbnew/dialogs/dialog_create_array.cpp index 409bfcf002..45d6274c9a 100644 --- a/pcbnew/dialogs/dialog_create_array.cpp +++ b/pcbnew/dialogs/dialog_create_array.cpp @@ -71,9 +71,7 @@ struct CREATE_ARRAY_DIALOG_ENTRIES m_CircRotatationStep( false ), m_ArrayTypeTab( 0 ), // start on grid view m_FootprintKeepAnnotations( false ), - m_FootprintReannotate( true ), // Assign unique by default - m_CenterByRadius( false ), - m_CenterByPosition( true ) + m_FootprintReannotate( true ) // Assign unique by default { } @@ -111,8 +109,6 @@ struct CREATE_ARRAY_DIALOG_ENTRIES long m_ArrayTypeTab; bool m_FootprintKeepAnnotations; bool m_FootprintReannotate; - bool m_CenterByRadius; - bool m_CenterByPosition; }; // Persistent options settings @@ -238,9 +234,6 @@ DIALOG_CREATE_ARRAY::DIALOG_CREATE_ARRAY( PCB_BASE_FRAME* aParent, m_cfg_persister.Add( *m_radioBtnKeepRefs, s_arrayOptions.m_FootprintKeepAnnotations ); m_cfg_persister.Add( *m_radioBtnUniqueRefs, s_arrayOptions.m_FootprintReannotate ); - m_cfg_persister.Add( *m_radioBtnSetByPos, s_arrayOptions.m_CenterByPosition ); - m_cfg_persister.Add( *m_radioBtnSetByRadius, s_arrayOptions.m_CenterByRadius ); - m_cfg_persister.RestoreConfigToControls(); // Run the callbacks once to process the dialog contents diff --git a/pcbnew/dialogs/dialog_create_array.h b/pcbnew/dialogs/dialog_create_array.h index 899e61345e..c4fd3430de 100644 --- a/pcbnew/dialogs/dialog_create_array.h +++ b/pcbnew/dialogs/dialog_create_array.h @@ -86,8 +86,6 @@ private: UNIT_BINDER m_circRadius; UNIT_BINDER m_circCenterAngle; UNIT_BINDER m_circAngle; - bool m_CenterByRadius; - bool m_CenterByPosition; WIDGET_SAVE_RESTORE m_cfg_persister; };