src/main/java/com/mxgraph/util/mxUndoManager.java
protected void trim()
	{
		while (history.size() > indexOfNextAdd)
		{
			mxUndoableEdit edit = history
					.remove(indexOfNextAdd);
			edit.die();
		}
	}
/**
	 * Removes all pending steps after indexOfNextAdd from the history,
	 * invoking die on each edit. This is called from undoableEditHappened.
	 */
Removes all pending steps after indexOfNextAdd from the history,
invoking die on each edit. This is called from undoableEditHappened.
Removes all pending steps after indexOfNextAdd from the history invoking die on each edit . This is called from undoableEditHappened .
protected void trim()
	{
		while (history.size() > indexOfNextAdd)
		{
			mxUndoableEdit edit = history
					.remove(indexOfNextAdd);
			edit.die();
		}
	}
protected void trim ( ) { while ( history . size ( ) > indexOfNextAdd ) { mxUndoableEdit edit = history . remove ( indexOfNextAdd ) ; edit . die ( ) ; } }
Removes all pending steps after indexOfNextAdd from the history,
 invoking die on each edit.
Removes all pending steps after indexOfNextAdd from the history invoking die on each edit .