clear method

void clear()

Implementation

void clear() {
  undo.clear();
  redo.clear();
}