summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/CheckStatement.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2010-02-15 12:23:28 +0100
committerErik Verbruggen <erik.verbruggen@nokia.com>2010-02-15 12:24:31 +0100
commita0071f1ce968a3c01d034227f0c01042447dfb43 (patch)
tree9a76e232739878f7e0b633c85ee3ed6fe2e246d5 /src/shared/cplusplus/CheckStatement.cpp
parentcb3001b621a7c212443e1b9fc4dbabd5b27666d9 (diff)
downloadqt-creator-a0071f1ce968a3c01d034227f0c01042447dfb43.tar.gz
Revert "Added Objective-C @try block parsing."
This reverts commit f4163b8ba01cd1a4f5d91c83a3863939b7809375.
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;
-}