summaryrefslogtreecommitdiff
path: root/vala/valaconditionalexpression.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-06-06 17:04:02 +0200
committerJürg Billeter <j@bitron.ch>2009-06-06 17:20:19 +0200
commitfef10859ae29c524cac6a7388759f02e26df160d (patch)
treed7109c2f82aa845e5a86c37475da1e04eee133f0 /vala/valaconditionalexpression.vala
parenta71e6e0dea67455e741ffe319f796419a3fa42fe (diff)
downloadvala-fef10859ae29c524cac6a7388759f02e26df160d.tar.gz
Convert for loops into simple loops
Diffstat (limited to 'vala/valaconditionalexpression.vala')
-rw-r--r--vala/valaconditionalexpression.vala6
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;