diff --git a/common/base_struct.cpp b/common/base_struct.cpp index b3d1c134fc..793864ce25 100644 --- a/common/base_struct.cpp +++ b/common/base_struct.cpp @@ -76,7 +76,6 @@ void EDA_ITEM::initVars() Pback = NULL; // Linked list: Link (previous struct) m_Parent = NULL; // Linked list: Link (parent struct) m_List = NULL; // I am not on any list yet - m_Image = NULL; // Link to an image copy for undelete or abort command m_Flags = 0; // flags for editions and other SetTimeStamp( 0 ); // Time stamp used for logical links m_Status = 0; diff --git a/eeschema/operations_on_items_lists.cpp b/eeschema/operations_on_items_lists.cpp index 89346b1958..6f0b790c27 100644 --- a/eeschema/operations_on_items_lists.cpp +++ b/eeschema/operations_on_items_lists.cpp @@ -258,7 +258,5 @@ SCH_ITEM* DuplicateStruct( SCH_ITEM* aDrawStruct, bool aClone ) if( aClone ) NewDrawStruct->SetTimeStamp( aDrawStruct->GetTimeStamp() ); - NewDrawStruct->SetImage( aDrawStruct ); - return NewDrawStruct; } diff --git a/eeschema/schematic_undo_redo.cpp b/eeschema/schematic_undo_redo.cpp index 7c539d0377..1f7da2e205 100644 --- a/eeschema/schematic_undo_redo.cpp +++ b/eeschema/schematic_undo_redo.cpp @@ -102,7 +102,7 @@ /* Used if undo / redo command: - * swap data between Item and its copy, pointed by its .m_Image member + * swap data between Item and its copy, pointed by its picked item link member * swapped data is data modified by edition, so not all values are swapped */ diff --git a/include/base_struct.h b/include/base_struct.h index 88fcf98c49..2990b14f8f 100644 --- a/include/base_struct.h +++ b/include/base_struct.h @@ -179,9 +179,6 @@ protected: /// Flag bits for editing and other uses. STATUS_FLAGS m_Flags; - // Link to an copy of the item use to save the item's state for undo/redo feature. - EDA_ITEM* m_Image; - private: void initVars(); @@ -262,8 +259,6 @@ public: void ClearFlags( STATUS_FLAGS aMask = EDA_ITEM_ALL_FLAGS ) { m_Flags &= ~aMask; } STATUS_FLAGS GetFlags() const { return m_Flags; } - void SetImage( EDA_ITEM* aItem ) { m_Image = aItem; } - /** * Function SetForceVisible * is used to set and cleag force visible flag used to force the item to be drawn