Removed unused undo() method.