diff --git a/common/widgets/footprint_select_widget.cpp b/common/widgets/footprint_select_widget.cpp index f000288bc5..a6052312e9 100644 --- a/common/widgets/footprint_select_widget.cpp +++ b/common/widgets/footprint_select_widget.cpp @@ -36,7 +36,6 @@ FOOTPRINT_SELECT_WIDGET::FOOTPRINT_SELECT_WIDGET( EDA_DRAW_FRAME* aFrame, wxWind FOOTPRINT_LIST* aFpList, bool aUpdate, int aMaxItems ) : wxPanel( aParent ), - m_kiway( nullptr ), m_update( aUpdate ), m_max_items( aMaxItems ), m_fp_list( aFpList ) @@ -56,8 +55,6 @@ FOOTPRINT_SELECT_WIDGET::FOOTPRINT_SELECT_WIDGET( EDA_DRAW_FRAME* aFrame, wxWind void FOOTPRINT_SELECT_WIDGET::Load( KIWAY& aKiway, PROJECT& aProject ) { - m_kiway = &aKiway; - try { m_fp_list = FOOTPRINT_LIST::GetInstance( aKiway ); diff --git a/include/widgets/footprint_select_widget.h b/include/widgets/footprint_select_widget.h index 2e0da07bfe..2a9d838ed0 100644 --- a/include/widgets/footprint_select_widget.h +++ b/include/widgets/footprint_select_widget.h @@ -123,7 +123,6 @@ public: virtual bool Enable( bool aEnable = true ) override; private: - KIWAY* m_kiway; FOOTPRINT_CHOICE* m_fp_sel_ctrl; wxSizer* m_sizer;