Undo/Redo: remove unused NOP type
This commit is contained in:
parent
2a80b1c32b
commit
6b2a5f643a
|
@ -275,11 +275,6 @@ void SCH_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList )
|
|||
eda_item->ClearEditFlags();
|
||||
eda_item->ClearTempFlags();
|
||||
|
||||
if( status == UNDO_REDO::NOP )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if( status == UNDO_REDO::NEWITEM )
|
||||
{
|
||||
// If we are removing the current sheet, get out first
|
||||
|
@ -384,8 +379,7 @@ void SCH_EDIT_FRAME::RollbackSchematicFromUndo()
|
|||
PICKED_ITEMS_LIST* undo = PopCommandFromUndoList();
|
||||
|
||||
// Skip empty frames
|
||||
while( undo && ( !undo->GetCount()
|
||||
|| ( undo->GetCount() == 1 && undo->GetPickedItemStatus( 0 ) == UNDO_REDO::NOP ) ) )
|
||||
while( undo && !undo->GetCount() )
|
||||
{
|
||||
delete undo;
|
||||
undo = PopCommandFromUndoList();
|
||||
|
|
|
@ -57,7 +57,6 @@ class BASE_SCREEN;
|
|||
*/
|
||||
enum class UNDO_REDO {
|
||||
UNSPECIFIED = 0, // illegal
|
||||
NOP, // Undo/redo will ignore this entry. Only forces the start of a new stack
|
||||
CHANGED, // params of items have a value changed: undo is made by exchange
|
||||
// values with a copy of these values
|
||||
NEWITEM, // new item, undo by changing in deleted
|
||||
|
|
Loading…
Reference in New Issue