Browse Source

Cleanup unused variables.

newinvert
Jeff Young 2 years ago
parent
commit
d257dc5b4e
  1. 1
      common/gestfich.cpp
  2. 9
      pcbnew/dialogs/dialog_create_array.cpp
  3. 2
      pcbnew/dialogs/dialog_create_array.h

1
common/gestfich.cpp

@ -194,7 +194,6 @@ int ExecuteFile( const wxString& aEditorName, const wxString& aFileName, wxProce
if( wxFileExists( fullEditorName ) )
{
int i = 0;
std::vector<const wchar_t*> args;
args.emplace_back( fullEditorName.wc_str() );

9
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

2
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;
};

Loading…
Cancel
Save