def VisitClass(self, cls):
    methods = tuple((self._MaybeDeleteFunction(m) for m in cls.methods))
    if methods.count(None):
        return cls.Replace(methods=tuple((m for m in methods if (m is not None))))
    else:
        return cls
def VisitClass(self, cls):
    methods = tuple((self._MaybeDeleteFunction(m) for m in cls.methods))
    if methods.count(None):
        return cls.Replace(methods=tuple((m for m in methods if (m is not None))))
    else:
        return cls