summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/ASTClone.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/ASTClone.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/ASTClone.cpp')
-rw-r--r--src/shared/cplusplus/ASTClone.cpp49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/shared/cplusplus/ASTClone.cpp b/src/shared/cplusplus/ASTClone.cpp
index a909db03b7..d4247ad116 100644
--- a/src/shared/cplusplus/ASTClone.cpp
+++ b/src/shared/cplusplus/ASTClone.cpp
@@ -1108,16 +1108,6 @@ ThrowExpressionAST *ThrowExpressionAST::clone(MemoryPool *pool) const
return ast;
}
-ObjCThrowExpressionAST *ObjCThrowExpressionAST::clone(MemoryPool *pool) const
-{
- ObjCThrowExpressionAST *ast = new (pool) ObjCThrowExpressionAST;
- ast->at_token = at_token;
- ast->throw_token = throw_token;
- if (expression)
- ast->expression = expression->clone(pool);
- return ast;
-}
-
TranslationUnitAST *TranslationUnitAST::clone(MemoryPool *pool) const
{
TranslationUnitAST *ast = new (pool) TranslationUnitAST;
@@ -1574,42 +1564,3 @@ ObjCSynchronizedStatementAST *ObjCSynchronizedStatementAST::clone(MemoryPool *po
return ast;
}
-ObjCTryBlockStatementAST *ObjCTryBlockStatementAST::clone(MemoryPool *pool) const
-{
- ObjCTryBlockStatementAST *ast = new (pool) ObjCTryBlockStatementAST;
- ast->at_token = at_token;
- ast->try_token = try_token;
- if (statement)
- ast->statement = statement->clone(pool);
- for (ObjCCatchClauseListAST *iter = catch_clause_list, **ast_iter = &ast->catch_clause_list;
- iter; iter = iter->next, ast_iter = &(*ast_iter)->next)
- *ast_iter = new (pool) ObjCCatchClauseListAST((iter->value) ? iter->value->clone(pool) : 0);
- if (finally_clause)
- ast->finally_clause = finally_clause->clone(pool);
- return ast;
-}
-
-ObjCCatchClauseAST *ObjCCatchClauseAST::clone(MemoryPool *pool) const
-{
- ObjCCatchClauseAST *ast = new (pool) ObjCCatchClauseAST;
- ast->at_token = at_token;
- ast->catch_token = catch_token;
- ast->lparen_token = lparen_token;
- if (exception_declaration)
- ast->exception_declaration = exception_declaration->clone(pool);
- ast->rparen_token = rparen_token;
- if (statement)
- ast->statement = statement->clone(pool);
- return ast;
-}
-
-ObjCFinallyClauseAST *ObjCFinallyClauseAST::clone(MemoryPool *pool) const
-{
- ObjCFinallyClauseAST *ast = new (pool) ObjCFinallyClauseAST;
- ast->at_token = at_token;
- ast->finally_token = finally_token;
- if (statement)
- ast->statement = statement->clone(pool);
- return ast;
-}
-