Skip to content

Commit 1a97f24

Browse files
authored
Merge pull request #37841 from xedin/cleanup-commented-code-graph
[ConstraintGraph] NFC: Remove commented code from {introduceTo, retra…
2 parents a80d183 + 5fd722c commit 1a97f24

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

lib/Sema/ConstraintGraph.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -321,15 +321,6 @@ void ConstraintGraphNode::introduceToInference(Constraint *constraint) {
321321
getTypeVariable()->getImpl().getRepresentative(/*record=*/nullptr);
322322
CG[repr].introduceToInference(constraint);
323323
}
324-
325-
/*
326-
if (!notifyReferencedVars || !isUsefulForReferencedVars(constraint))
327-
return;
328-
329-
this->notifyReferencedVars([&](ConstraintGraphNode &referencedVar) {
330-
referencedVar.introduceToInference(constraint);
331-
});
332-
*/
333324
}
334325

335326
void ConstraintGraphNode::retractFromInference(Constraint *constraint) {
@@ -342,15 +333,6 @@ void ConstraintGraphNode::retractFromInference(Constraint *constraint) {
342333
getTypeVariable()->getImpl().getRepresentative(/*record=*/nullptr);
343334
CG[repr].retractFromInference(constraint);
344335
}
345-
346-
/*
347-
if (!notifyReferencedVars || !isUsefulForReferencedVars(constraint))
348-
return;
349-
350-
this->notifyReferencedVars([&](ConstraintGraphNode &referencedVar) {
351-
referencedVar.retractFromInference(constraint);
352-
});
353-
*/
354336
}
355337

356338
void ConstraintGraphNode::reintroduceToInference(Constraint *constraint) {

0 commit comments

Comments
 (0)