diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp index 379a69c0cd..4beda24d58 100644 --- a/eeschema/files-io.cpp +++ b/eeschema/files-io.cpp @@ -954,28 +954,6 @@ bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType ) SaveProjectSettings(); UpdateFileHistory( aFileName ); - SCH_SCREENS schematic( Schematic().Root() ); - schematic.UpdateSymbolLinks(); // Update all symbol library links for all sheets. - - for( SCH_SCREEN* screen = schematic.GetFirst(); screen; screen = schematic.GetNext() ) - { - for( auto item : screen->Items().OfType( SCH_COMPONENT_T ) ) - { - std::vector pts; - SCH_COMPONENT* cmp = static_cast( item ); - - // Update footprint LIB_ID to point to the imported Eagle library - SCH_FIELD* fpField = cmp->GetField( FOOTPRINT_FIELD ); - - if( !fpField->GetText().IsEmpty() ) - { - LIB_ID fpId; - fpId.Parse( fpField->GetText(), true ); - fpId.SetLibNickname( newfilename.GetName() ); - fpField->SetText( fpId.Format() ); - } - } - } // Only perform the dangling end test on root sheet. GetScreen()->TestDanglingEnds();