diff options
Diffstat (limited to 'src/shared/cplusplus/ASTClone.cpp')
-rw-r--r-- | src/shared/cplusplus/ASTClone.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/shared/cplusplus/ASTClone.cpp b/src/shared/cplusplus/ASTClone.cpp index a5167a59d4..de0be8287d 100644 --- a/src/shared/cplusplus/ASTClone.cpp +++ b/src/shared/cplusplus/ASTClone.cpp @@ -1461,15 +1461,8 @@ ObjCMethodDeclarationAST *ObjCMethodDeclarationAST::clone(MemoryPool *pool) cons { ObjCMethodDeclarationAST *ast = new (pool) ObjCMethodDeclarationAST; if (method_prototype) ast->method_prototype = method_prototype->clone(pool); - ast->semicolon_token = semicolon_token; - return ast; -} - -ObjCMethodDefinitionAST *ObjCMethodDefinitionAST::clone(MemoryPool *pool) const -{ - ObjCMethodDefinitionAST *ast = new (pool) ObjCMethodDefinitionAST; - if (method_prototype) ast->method_prototype = method_prototype->clone(pool); if (function_body) ast->function_body = function_body->clone(pool); + ast->semicolon_token = semicolon_token; return ast; } |