diff --git a/pcbnew/board_commit.cpp b/pcbnew/board_commit.cpp index 1a64749de1..5b5277e1a3 100644 --- a/pcbnew/board_commit.cpp +++ b/pcbnew/board_commit.cpp @@ -152,7 +152,6 @@ void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry, bool a } savedModules.insert( ent.m_item ); - static_cast( ent.m_item )->SetLastEditTime(); } } diff --git a/pcbnew/dialogs/dialog_pad_properties.cpp b/pcbnew/dialogs/dialog_pad_properties.cpp index b56b194989..34b9c1d9e5 100644 --- a/pcbnew/dialogs/dialog_pad_properties.cpp +++ b/pcbnew/dialogs/dialog_pad_properties.cpp @@ -1635,8 +1635,6 @@ bool DIALOG_PAD_PROPERTIES::TransferDataFromWindow() if( footprint ) { - footprint->SetLastEditTime(); - // compute the pos 0 value, i.e. pad position for footprint with orientation = 0 // i.e. relative to footprint origin (footprint position) wxPoint pt = m_currentPad->GetPosition() - footprint->GetPosition(); diff --git a/pcbnew/footprint.h b/pcbnew/footprint.h index d1d57ca6aa..f426a95e74 100644 --- a/pcbnew/footprint.h +++ b/pcbnew/footprint.h @@ -340,7 +340,6 @@ public: */ void SetLastEditTime( timestamp_t aTime ) { m_lastEditTime = aTime; } - void SetLastEditTime() { m_lastEditTime = time( nullptr ); } timestamp_t GetLastEditTime() const { return m_lastEditTime; } /** diff --git a/pcbnew/footprint_libraries_utils.cpp b/pcbnew/footprint_libraries_utils.cpp index eff1547da4..84d0eef2ab 100644 --- a/pcbnew/footprint_libraries_utils.cpp +++ b/pcbnew/footprint_libraries_utils.cpp @@ -1182,9 +1182,6 @@ FOOTPRINT* PCB_BASE_FRAME::CreateNewFootprint( const wxString& aFootprintName, b // Creates the new footprint and add it to the head of the linked list of footprints FOOTPRINT* footprint = new FOOTPRINT( GetBoard() ); - // Update parameters: timestamp ... - footprint->SetLastEditTime(); - // Update its name in lib footprint->SetFPID( LIB_ID( wxEmptyString, footprintName ) ); diff --git a/pcbnew/tools/pcb_control.cpp b/pcbnew/tools/pcb_control.cpp index d58e2252bb..e19c2a5d95 100644 --- a/pcbnew/tools/pcb_control.cpp +++ b/pcbnew/tools/pcb_control.cpp @@ -1235,16 +1235,6 @@ int PCB_CONTROL::UpdateMessagePanel( const TOOL_EVENT& aEvent ) msg = footprint->GetFPID().GetLibItemName().wx_str(); msgItems.emplace_back( MSG_PANEL_ITEM( _( "Footprint Name" ), msg ) ); - wxDateTime date( static_cast( footprint->GetLastEditTime() ) ); - - if( footprint->GetLastEditTime() && date.IsValid() ) - // Date format: see http://www.cplusplus.com/reference/ctime/strftime - msg = date.Format( wxT( "%b %d, %Y" ) ); // Abbreviated_month_name Day, Year - else - msg = _( "Unknown" ); - - msgItems.emplace_back( MSG_PANEL_ITEM( _( "Last Change" ), msg ) ); - msg.Printf( wxT( "%zu" ), (size_t) footprint->GetPadCount( DO_NOT_INCLUDE_NPTH ) ); msgItems.emplace_back( MSG_PANEL_ITEM( _( "Pads" ), msg ) ); diff --git a/pcbnew/undo_redo.cpp b/pcbnew/undo_redo.cpp index db097900e5..1cb73fbe0b 100644 --- a/pcbnew/undo_redo.cpp +++ b/pcbnew/undo_redo.cpp @@ -235,8 +235,6 @@ void PCB_BASE_EDIT_FRAME::SaveCopyInUndoList( const PICKED_ITEMS_LIST& aItemsLis ITEM_PICKER picker( nullptr, item, UNDO_REDO::CHANGED ); picker.SetLink( clone ); commandToUndo->PushItem( picker ); - - orig->SetLastEditTime(); } else {