def remove_references(self, name):
        to_remove = []
        for oname, obj in self._objectives.items():
            if name in obj.get_referenced_compnames():
                to_remove.append(oname)

        for oname in to_remove:
            self.remove_objective(oname)
Remove references to component `name`.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/hasobjective.py/HasObjectives.remove_references