Undo/Redo: remove unused NOP type

This commit is contained in:
Mike Williams 2023-08-09 14:04:22 -04:00
parent 2a80b1c32b
commit 6b2a5f643a
2 changed files with 1 additions and 8 deletions

View File

@ -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();

View File

@ -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