diff --git a/eeschema/sch_screen.cpp b/eeschema/sch_screen.cpp index e27fb9cf6e..97bacae32c 100644 --- a/eeschema/sch_screen.cpp +++ b/eeschema/sch_screen.cpp @@ -726,16 +726,6 @@ void SCH_SCREEN::UpdateLocalLibSymbolLinks() } -void SCH_SCREEN::SwapSymbolLinks( const SCH_SYMBOL* aOriginalSymbol, const SCH_SYMBOL* aNewSymbol ) -{ - wxCHECK( aOriginalSymbol && aNewSymbol /* && m_rtree.contains( aOriginalSymbol, true ) */, - /* void */ ); - - if( aOriginalSymbol->GetSchSymbolLibraryName() == aNewSymbol->GetSchSymbolLibraryName() ) - return; -} - - void SCH_SCREEN::Print( const RENDER_SETTINGS* aSettings ) { // Ensure links are up to date, even if a library was reloaded for some reason: diff --git a/eeschema/sch_screen.h b/eeschema/sch_screen.h index 3fb9dd6556..f4dc43d795 100644 --- a/eeschema/sch_screen.h +++ b/eeschema/sch_screen.h @@ -225,8 +225,6 @@ public: */ void UpdateLocalLibSymbolLinks(); - void SwapSymbolLinks( const SCH_SYMBOL* aOriginalSymbol, const SCH_SYMBOL* aNewSymbol ); - /** * Print all the items in the screen to \a aDC. * diff --git a/eeschema/schematic_undo_redo.cpp b/eeschema/schematic_undo_redo.cpp index 91ec38f0b9..92cd144230 100644 --- a/eeschema/schematic_undo_redo.cpp +++ b/eeschema/schematic_undo_redo.cpp @@ -316,22 +316,7 @@ void SCH_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList ) switch( status ) { case UNDO_REDO::CHANGED: - if( item->Type() == SCH_SYMBOL_T ) - { - // Update the schematic library cache in case that was the change. - SCH_SYMBOL* symbol = dynamic_cast( item ); - SCH_SYMBOL* altSymbol = dynamic_cast( alt_item ); - - wxCHECK( symbol && altSymbol, /* void */ ); - - screen->SwapSymbolLinks( symbol, altSymbol ); - } - item->SwapData( alt_item ); - - if( item->Type() == SCH_SYMBOL_T ) - static_cast( item )->UpdatePins(); - break; case UNDO_REDO::EXCHANGE_T: