Skip to content

Commit 836d88f

Browse files
authored
Merge pull request #29546 from LucianoPAlmeida/visit-try-expr
[CSDiag] Removing unused FailureDiagnosis::visitTryExpr
2 parents f0b7fb9 + dcaa950 commit 836d88f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/Sema/CSDiag.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ class FailureDiagnosis :public ASTVisitor<FailureDiagnosis, /*exprresult*/bool>{
221221
validateContextualType(Type contextualType, ContextualTypePurpose CTP);
222222

223223
bool visitExpr(Expr *E);
224-
bool visitTryExpr(TryExpr *E);
225224

226225
bool visitApplyExpr(ApplyExpr *AE);
227226
bool visitRebindSelfInConstructorExpr(RebindSelfInConstructorExpr *E);
@@ -1425,12 +1424,6 @@ visitRebindSelfInConstructorExpr(RebindSelfInConstructorExpr *E) {
14251424
return false;
14261425
}
14271426

1428-
/// A TryExpr doesn't change it's argument, nor does it change the contextual
1429-
/// type.
1430-
bool FailureDiagnosis::visitTryExpr(TryExpr *E) {
1431-
return visit(E->getSubExpr());
1432-
}
1433-
14341427
bool FailureDiagnosis::visitExpr(Expr *E) {
14351428
// Check each of our immediate children to see if any of them are
14361429
// independently invalid.

0 commit comments

Comments
 (0)