Skip to content

Commit dd5486c

Browse files
committed
[Sema] Remove ConjunctionElement::mightContainCodeCompletionToken
Isn’t used anymore (I think it stopped being used after the new result builder transform was enabled).
1 parent ece521c commit dd5486c

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

include/swift/Sema/ConstraintSystem.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6057,10 +6057,6 @@ class ConjunctionElement {
60576057
Element->print(Out, SM, indent);
60586058
}
60596059

6060-
/// Returns \c false if this conjunction element is known not to contain the
6061-
/// code compleiton token.
6062-
bool mightContainCodeCompletionToken(const ConstraintSystem &cs) const;
6063-
60646060
private:
60656061
/// Find type variables referenced by this conjunction element.
60666062
/// If this is a closure body element, it would look inside \c ASTNode.

lib/Sema/CSSyntacticElement.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2651,21 +2651,6 @@ bool ConstraintSystem::applySolutionToBody(Solution &solution, TapExpr *tapExpr,
26512651
return false;
26522652
}
26532653

2654-
bool ConjunctionElement::mightContainCodeCompletionToken(
2655-
const ConstraintSystem &cs) const {
2656-
if (Element->getKind() == ConstraintKind::SyntacticElement) {
2657-
if (Element->getSyntacticElement().getSourceRange().isInvalid()) {
2658-
return true;
2659-
} else {
2660-
return cs.containsIDEInspectionTarget(Element->getSyntacticElement());
2661-
}
2662-
} else {
2663-
// All other constraint kinds are not handled yet. Assume that they might
2664-
// contain the code completion token.
2665-
return true;
2666-
}
2667-
}
2668-
26692654
bool ConstraintSystem::applySolutionToSingleValueStmt(
26702655
Solution &solution, SingleValueStmtExpr *SVE, DeclContext *DC,
26712656
RewriteTargetFn rewriteTarget) {

0 commit comments

Comments
 (0)