diff options
author | Jürg Billeter <j@bitron.ch> | 2012-08-03 09:38:11 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2012-08-06 13:19:26 +0200 |
commit | 5ea6dc05d62c71ba4e633f70b86e4dd0a5e9c089 (patch) | |
tree | ca4d1a4dfb85ceab88339dbc15e165d2f5c564bc /vala/valalambdaexpression.vala | |
parent | 6a6a2cf59b7302b0b3b111c6a0c879c00d36ddce (diff) | |
download | vala-5ea6dc05d62c71ba4e633f70b86e4dd0a5e9c089.tar.gz |
Drop Dova profile
Diffstat (limited to 'vala/valalambdaexpression.vala')
-rw-r--r-- | vala/valalambdaexpression.vala | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/vala/valalambdaexpression.vala b/vala/valalambdaexpression.vala index 027beaf05..61482f42a 100644 --- a/vala/valalambdaexpression.vala +++ b/vala/valalambdaexpression.vala @@ -164,11 +164,6 @@ public class Vala.LambdaExpression : Expression { } method.owner = context.analyzer.current_symbol.scope; - if (!(method.return_type is VoidType) && CodeContext.get ().profile == Profile.DOVA) { - method.result_var = new LocalVariable (method.return_type.copy (), "result", null, source_reference); - method.result_var.is_result = true; - } - var lambda_params = get_parameters (); Iterator<Parameter> lambda_param_it = lambda_params.iterator (); @@ -208,12 +203,7 @@ public class Vala.LambdaExpression : Expression { block.scope.parent_scope = method.scope; if (method.return_type.data_type != null) { - if (context.profile == Profile.DOVA) { - block.add_statement (new ExpressionStatement (new Assignment (new MemberAccess.simple ("result", source_reference), expression_body, AssignmentOperator.SIMPLE, source_reference), source_reference)); - block.add_statement (new ReturnStatement (null, source_reference)); - } else { - block.add_statement (new ReturnStatement (expression_body, source_reference)); - } + block.add_statement (new ReturnStatement (expression_body, source_reference)); } else { block.add_statement (new ExpressionStatement (expression_body, source_reference)); } |