mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Remove ConstraintGraphNode::resetBindingSet()
This commit is contained in:
@@ -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.
|
||||
///
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user