CellsAutomate.Mutator.Mutations.DeleteCommandMutation.ReleaseRemoveCommands C# (CSharp) Method

ReleaseRemoveCommands() private method

private ReleaseRemoveCommands ( ) : void
return void
        private void ReleaseRemoveCommands()
        {
            if (_commandsToRemove.Count == 0) return;
            foreach (var item in _commandsToRemove.OrderByDescending(n => n.Index))
            {
                item.Execute();
                _removed.Push(item);
            }
            _commandsToRemove.Clear();
        }