about summary refs log tree commit diff
path: root/src/fix-ng/fix.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-11-01T19·15+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-11-01T19·15+0000
commit16104446712acf7e381039199eaf39dfa0fcea35 (patch)
treef5f9126a42304fbaba7632773cafc5b1a5ab226f /src/fix-ng/fix.cc
parent1b4184ccbb01634792897d3412c489b989674567 (diff)
* Conditions, string equality.
Diffstat (limited to 'src/fix-ng/fix.cc')
-rw-r--r--src/fix-ng/fix.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/fix-ng/fix.cc b/src/fix-ng/fix.cc
index d791461bd557..1c37a0b7ba20 100644
--- a/src/fix-ng/fix.cc
+++ b/src/fix-ng/fix.cc
@@ -32,12 +32,6 @@ static Expr evalExpr2(EvalState & state, Expr e)
 {
     /* Conditional. */
     if (ATmatch(e, "If(<term>, <term>, <term>)", &e1, &e2, &e3)) {
-        e1 = evalExpr(state, e1);
-        Expr x;
-        if (ATmatch(e1, "True")) x = e2;
-        else if (ATmatch(e1, "False")) x = e3;
-        else throw badTerm("expecting a boolean", e1);
-        return evalExpr(state, x);
     }
 
     /* Ad-hoc function for string matching. */