diff options
author | Jürg Billeter <j@bitron.ch> | 2009-06-06 17:04:02 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2009-06-06 17:20:19 +0200 |
commit | fef10859ae29c524cac6a7388759f02e26df160d (patch) | |
tree | d7109c2f82aa845e5a86c37475da1e04eee133f0 /vala/valaconditionalexpression.vala | |
parent | a71e6e0dea67455e741ffe319f796419a3fa42fe (diff) | |
download | vala-fef10859ae29c524cac6a7388759f02e26df160d.tar.gz |
Convert for loops into simple loops
Diffstat (limited to 'vala/valaconditionalexpression.vala')
-rw-r--r-- | vala/valaconditionalexpression.vala | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/vala/valaconditionalexpression.vala b/vala/valaconditionalexpression.vala index 191d0fc0c..f521bc8f0 100644 --- a/vala/valaconditionalexpression.vala +++ b/vala/valaconditionalexpression.vala @@ -1,6 +1,6 @@ /* valaconditionalexpression.vala * - * Copyright (C) 2006-2008 Jürg Billeter + * Copyright (C) 2006-2009 Jürg Billeter * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -111,9 +111,6 @@ public class Vala.ConditionalExpression : Expression { return false; } - var old_insert_block = analyzer.insert_block; - analyzer.insert_block = prepare_condition_split (analyzer); - // convert ternary expression into if statement // required for flow analysis and exception handling @@ -143,7 +140,6 @@ public class Vala.ConditionalExpression : Expression { if (!if_stmt.check (analyzer)) { return false; } - analyzer.insert_block = old_insert_block; true_expression = true_local.initializer; false_expression = false_local.initializer; |