mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Remove now-unused ConstraintGraph::inferBindings()
This commit is contained in:
@@ -448,11 +448,6 @@ private:
|
|||||||
void unrelateTypeVariables(TypeVariableType *typeVar,
|
void unrelateTypeVariables(TypeVariableType *typeVar,
|
||||||
TypeVariableType *otherTypeVar);
|
TypeVariableType *otherTypeVar);
|
||||||
|
|
||||||
/// Infer bindings from the given constraint.
|
|
||||||
///
|
|
||||||
/// Note that this it only meant to be called by SolverTrail::Change::undo().
|
|
||||||
void inferBindings(TypeVariableType *typeVar, Constraint *constraint);
|
|
||||||
|
|
||||||
/// Retract bindings from the given constraint.
|
/// Retract bindings from the given constraint.
|
||||||
///
|
///
|
||||||
/// Note that this it only meant to be called by SolverTrail::Change::undo().
|
/// Note that this it only meant to be called by SolverTrail::Change::undo().
|
||||||
|
|||||||
@@ -540,11 +540,6 @@ void ConstraintGraph::unrelateTypeVariables(TypeVariableType *typeVar,
|
|||||||
node.removeReference(otherTypeVar);
|
node.removeReference(otherTypeVar);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConstraintGraph::inferBindings(TypeVariableType *typeVar,
|
|
||||||
Constraint *constraint) {
|
|
||||||
(*this)[typeVar].getPotentialBindings().infer(CS, typeVar, constraint);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ConstraintGraph::retractBindings(TypeVariableType *typeVar,
|
void ConstraintGraph::retractBindings(TypeVariableType *typeVar,
|
||||||
Constraint *constraint) {
|
Constraint *constraint) {
|
||||||
(*this)[typeVar].getPotentialBindings().retract(CS, typeVar, constraint);
|
(*this)[typeVar].getPotentialBindings().retract(CS, typeVar, constraint);
|
||||||
|
|||||||
Reference in New Issue
Block a user