File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,6 @@ class FailureDiagnosis :public ASTVisitor<FailureDiagnosis, /*exprresult*/bool>{
221
221
validateContextualType (Type contextualType, ContextualTypePurpose CTP);
222
222
223
223
bool visitExpr (Expr *E);
224
- bool visitIdentityExpr (IdentityExpr *E);
225
224
bool visitTryExpr (TryExpr *E);
226
225
227
226
bool visitApplyExpr (ApplyExpr *AE);
@@ -1524,21 +1523,6 @@ visitRebindSelfInConstructorExpr(RebindSelfInConstructorExpr *E) {
1524
1523
return false ;
1525
1524
}
1526
1525
1527
- // / An IdentityExpr doesn't change its argument, but it *can* propagate its
1528
- // / contextual type information down.
1529
- bool FailureDiagnosis::visitIdentityExpr (IdentityExpr *E) {
1530
- auto contextualType = CS.getContextualType (E);
1531
-
1532
- // If we have a paren expr and our contextual type is a ParenType, remove the
1533
- // paren expr sugar.
1534
- if (contextualType)
1535
- contextualType = contextualType->getWithoutParens ();
1536
- if (!typeCheckChildIndependently (E->getSubExpr (), contextualType,
1537
- CS.getContextualTypePurpose (E)))
1538
- return true ;
1539
- return false ;
1540
- }
1541
-
1542
1526
// / A TryExpr doesn't change it's argument, nor does it change the contextual
1543
1527
// / type.
1544
1528
bool FailureDiagnosis::visitTryExpr (TryExpr *E) {
You can’t perform that action at this time.
0 commit comments