Sema: Remove ConstraintGraphNode::resetBindingSet()

This commit is contained in:
Slava Pestov
2024-09-30 21:30:51 -04:00
parent 186589bd25
commit 31edb86da9
2 changed files with 0 additions and 16 deletions

View File

@@ -153,10 +153,6 @@ private:
/// type variable has been bound to a valid type and solver can make progress.
void introduceToInference(Type fixedType);
/// Drop all previously collected bindings and re-infer based on the
/// current set constraints associated with this equivalence class.
void resetBindingSet();
/// Notify all of the type variables that have this one (or any member of
/// its equivalence class) referenced in their fixed type.
///

View File

@@ -376,18 +376,6 @@ void ConstraintGraphNode::introduceToInference(Type fixedType) {
}
}
void ConstraintGraphNode::resetBindingSet() {
assert(forRepresentativeVar());
Bindings.reset();
auto &bindings = getCurrentBindings();
for (auto *constraint : CG.gatherConstraints(
TypeVar, ConstraintGraph::GatheringKind::EquivalenceClass)) {
bindings.infer(constraint);
}
}
#pragma mark Graph mutation
void ConstraintGraph::removeNode(TypeVariableType *typeVar) {