def undo_all(changes):
    """Undo all the changes in CHANGES."""
    if changes is None:
        return
    for change in changes:
        if change.unifier is not None:
            change.unifier.delete(change.var)
