Skip to content

Commit 31edb86

Browse files
committed
Sema: Remove ConstraintGraphNode::resetBindingSet()
1 parent 186589b commit 31edb86

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

include/swift/Sema/ConstraintGraph.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,6 @@ class ConstraintGraphNode {
153153
/// type variable has been bound to a valid type and solver can make progress.
154154
void introduceToInference(Type fixedType);
155155

156-
/// Drop all previously collected bindings and re-infer based on the
157-
/// current set constraints associated with this equivalence class.
158-
void resetBindingSet();
159-
160156
/// Notify all of the type variables that have this one (or any member of
161157
/// its equivalence class) referenced in their fixed type.
162158
///

lib/Sema/ConstraintGraph.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -376,18 +376,6 @@ void ConstraintGraphNode::introduceToInference(Type fixedType) {
376376
}
377377
}
378378

379-
void ConstraintGraphNode::resetBindingSet() {
380-
assert(forRepresentativeVar());
381-
382-
Bindings.reset();
383-
384-
auto &bindings = getCurrentBindings();
385-
for (auto *constraint : CG.gatherConstraints(
386-
TypeVar, ConstraintGraph::GatheringKind::EquivalenceClass)) {
387-
bindings.infer(constraint);
388-
}
389-
}
390-
391379
#pragma mark Graph mutation
392380

393381
void ConstraintGraph::removeNode(TypeVariableType *typeVar) {

0 commit comments

Comments
 (0)