diff --git a/eeschema/dialogs/dialog_erc.cpp b/eeschema/dialogs/dialog_erc.cpp index 8e811a40d3..47c9d686b9 100644 --- a/eeschema/dialogs/dialog_erc.cpp +++ b/eeschema/dialogs/dialog_erc.cpp @@ -478,15 +478,6 @@ void DIALOG_ERC::TestErc( wxArrayString* aMessagesList ) // Erase all previous DRC markers. screens.DeleteAllMarkers( MARKER_BASE::MARKER_ERC ); - for( SCH_SCREEN* screen = screens.GetFirst(); screen != NULL; screen = screens.GetNext() ) - { - /* Ff wire list has changed, delete Undo Redo list to avoid pointers on deleted - * data problems. - */ - if( screen->SchematicCleanUp() ) - screen->ClearUndoRedoList(); - } - /* Test duplicate sheet names inside a given sheet, one cannot have sheets with * duplicate names (file names can be duplicated). */ diff --git a/eeschema/netlist.cpp b/eeschema/netlist.cpp index 6252f27c40..ef5d0a5f55 100644 --- a/eeschema/netlist.cpp +++ b/eeschema/netlist.cpp @@ -83,9 +83,6 @@ bool SCH_EDIT_FRAME::prepareForNetlist() return false; } - // Cleanup the entire hierarchy - schematic.SchematicCleanUp(); - return true; } @@ -123,7 +120,6 @@ bool SCH_EDIT_FRAME::CreateNetlist( int aFormat, const wxString& aFullFileName, schematic.UpdateSymbolLinks(); SCH_SHEET_LIST sheets( g_RootSheet ); sheets.AnnotatePowerSymbols(); - schematic.SchematicCleanUp(); } std::unique_ptr connectedItemsList( BuildNetListBase() );