summaryrefslogtreecommitdiff
path: root/src/expr-visitor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr-visitor.cc')
-rw-r--r--src/expr-visitor.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/expr-visitor.cc b/src/expr-visitor.cc
index 5ef2b473..fa572285 100644
--- a/src/expr-visitor.cc
+++ b/src/expr-visitor.cc
@@ -107,10 +107,6 @@ Result ExprVisitor::VisitExpr(Expr* root_expr) {
CHECK_RESULT(delegate_->EndTryExpr(try_expr));
}
break;
- case TryKind::Unwind:
- CHECK_RESULT(delegate_->OnUnwindExpr(try_expr));
- PushExprlist(State::Unwind, expr, try_expr->unwind);
- break;
case TryKind::Delegate:
CHECK_RESULT(delegate_->OnDelegateExpr(try_expr));
break;
@@ -141,18 +137,6 @@ Result ExprVisitor::VisitExpr(Expr* root_expr) {
}
break;
}
-
- case State::Unwind: {
- auto try_expr = cast<TryExpr>(expr);
- auto& iter = expr_iter_stack_.back();
- if (iter != try_expr->unwind.end()) {
- PushDefault(&*iter++);
- } else {
- CHECK_RESULT(delegate_->EndTryExpr(try_expr));
- PopExprlist();
- }
- break;
- }
}
}