diff --git a/eeschema/class_libentry.cpp b/eeschema/class_libentry.cpp index 3b35f29421..7f2b694e75 100644 --- a/eeschema/class_libentry.cpp +++ b/eeschema/class_libentry.cpp @@ -314,14 +314,6 @@ void LIB_PART::SetName( const wxString& aName ) } -void LIB_PART::SetLibId( const LIB_ID& aLibId ) -{ - m_libId.SetLibNickname( aLibId.GetLibNickname() ); - // SetName() sets LibItemName in m_libId - SetName( aLibId.GetLibItemName() ); -} - - void LIB_PART::Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDc, const wxPoint& aOffset, int aMulti, int aConvert, const PART_DRAW_OPTIONS& aOpts ) { diff --git a/eeschema/class_libentry.h b/eeschema/class_libentry.h index 47a0d024ba..08e3546704 100644 --- a/eeschema/class_libentry.h +++ b/eeschema/class_libentry.h @@ -282,7 +282,6 @@ public: const wxString& GetName() const { return m_aliases[0]->GetName(); } const LIB_ID& GetLibId() const { return m_libId; } - void SetLibId( const LIB_ID& aLibId ); const wxString GetLibraryName(); diff --git a/eeschema/project_rescue.cpp b/eeschema/project_rescue.cpp index 48303d0bef..0a482d1c78 100644 --- a/eeschema/project_rescue.cpp +++ b/eeschema/project_rescue.cpp @@ -409,7 +409,6 @@ wxString RESCUE_SYMBOL_LIB_TABLE_CANDIDATE::GetActionDescription() const bool RESCUE_SYMBOL_LIB_TABLE_CANDIDATE::PerformAction( RESCUER* aRescuer ) { LIB_PART new_part( *m_cache_candidate ); - new_part.SetLibId( m_new_id ); new_part.SetName( m_new_id.GetLibItemName() ); new_part.RemoveAllAliases(); aRescuer->AddPart( &new_part ); diff --git a/eeschema/sch_legacy_plugin.cpp b/eeschema/sch_legacy_plugin.cpp index 1afd1149e2..04de9889d9 100644 --- a/eeschema/sch_legacy_plugin.cpp +++ b/eeschema/sch_legacy_plugin.cpp @@ -2492,9 +2492,6 @@ LIB_PART* SCH_LEGACY_PLUGIN_CACHE::loadPart( FILE_LINE_READER& aReader ) part->GetValueField().SetVisible( false ); } - // Don't set the library alias, this is determined by the symbol library table. - part->SetLibId( LIB_ID( wxEmptyString, part->GetName() ) ); - // There are some code paths in SetText() that do not set the root alias to the // alias list so add it here if it didn't get added by SetText(). if( !part->HasAlias( part->GetName() ) )