clear method

void clear()

Clear the history for redo and undo

Implementation

void clear() {
  clearUndo();
  clearRedo();
}