summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/CheckStatement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/cplusplus/CheckStatement.cpp')
-rw-r--r--src/shared/cplusplus/CheckStatement.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/shared/cplusplus/CheckStatement.cpp b/src/shared/cplusplus/CheckStatement.cpp
index dac65892ec..26e4e7c835 100644
--- a/src/shared/cplusplus/CheckStatement.cpp
+++ b/src/shared/cplusplus/CheckStatement.cpp
@@ -379,35 +379,3 @@ bool CheckStatement::visit(QtMemberDeclarationAST *ast)
_exprType = FullySpecifiedType();
return false;
}
-
-bool CheckStatement::visit(ObjCTryBlockStatementAST *ast)
-{
- semantic()->check(ast->statement, _scope);
- for (ObjCCatchClauseListAST *it = ast->catch_clause_list; it; it = it->next) {
- semantic()->check(it->value, _scope);
- }
- _exprType = FullySpecifiedType();
- return false;
-}
-
-bool CheckStatement::visit(ObjCCatchClauseAST *ast)
-{
- Block *block = control()->newBlock(ast->at_token);
- block->setStartOffset(tokenAt(ast->firstToken()).offset);
- block->setEndOffset(tokenAt(ast->lastToken()).offset);
- ast->symbol = block;
- _scope->enterSymbol(block);
- Scope *previousScope = switchScope(block->members());
- semantic()->check(ast->exception_declaration, _scope);
- semantic()->check(ast->statement, _scope);
- (void) switchScope(previousScope);
- _exprType = FullySpecifiedType();
- return false;
-}
-
-bool CheckStatement::visit(ObjCFinallyClauseAST *ast)
-{
- semantic()->check(ast->statement, _scope);
- _exprType = FullySpecifiedType();
- return false;
-}