Skip to content

Commit 09f78bf

Browse files
committed
Sema: Remove now-unused ConstraintGraph::inferBindings()
1 parent cda3cda commit 09f78bf

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

include/swift/Sema/ConstraintGraph.h

-5
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,6 @@ class ConstraintGraph {
448448
void unrelateTypeVariables(TypeVariableType *typeVar,
449449
TypeVariableType *otherTypeVar);
450450

451-
/// Infer bindings from the given constraint.
452-
///
453-
/// Note that this it only meant to be called by SolverTrail::Change::undo().
454-
void inferBindings(TypeVariableType *typeVar, Constraint *constraint);
455-
456451
/// Retract bindings from the given constraint.
457452
///
458453
/// Note that this it only meant to be called by SolverTrail::Change::undo().

lib/Sema/ConstraintGraph.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -540,11 +540,6 @@ void ConstraintGraph::unrelateTypeVariables(TypeVariableType *typeVar,
540540
node.removeReference(otherTypeVar);
541541
}
542542

543-
void ConstraintGraph::inferBindings(TypeVariableType *typeVar,
544-
Constraint *constraint) {
545-
(*this)[typeVar].getPotentialBindings().infer(CS, typeVar, constraint);
546-
}
547-
548543
void ConstraintGraph::retractBindings(TypeVariableType *typeVar,
549544
Constraint *constraint) {
550545
(*this)[typeVar].getPotentialBindings().retract(CS, typeVar, constraint);

0 commit comments

Comments
 (0)