summaryrefslogtreecommitdiff
path: root/src/op.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-22 16:25:51 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-22 16:25:51 -0400
commitccedf7d57f6cc42553f1d80189bf1491df6680e2 (patch)
tree550826fed1ede33d005f6bfba7ebed109f79f453 /src/op.cc
parent4e64364d3a6e575d7c9cb3db412dae36132b9f2d (diff)
downloadfork-ledger-ccedf7d57f6cc42553f1d80189bf1491df6680e2.tar.gz
fork-ledger-ccedf7d57f6cc42553f1d80189bf1491df6680e2.tar.bz2
fork-ledger-ccedf7d57f6cc42553f1d80189bf1491df6680e2.zip
Parse != as !(==) and !~ as !(=~), for simplicity's sake.
Diffstat (limited to 'src/op.cc')
-rw-r--r--src/op.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/op.cc b/src/op.cc
index 1d30188d..45d0e493 100644
--- a/src/op.cc
+++ b/src/op.cc
@@ -117,8 +117,6 @@ value_t expr_t::op_t::calc(scope_t& scope)
break;
}
- case O_NEQ:
- return left()->calc(scope) != right()->calc(scope);
case O_EQ:
return left()->calc(scope) == right()->calc(scope);
case O_LT:
@@ -260,15 +258,6 @@ bool expr_t::op_t::print(std::ostream& out, print_context_t& context) const
out << ")";
break;
- case O_NEQ:
- out << "(";
- if (left() && left()->print(out, context))
- found = true;
- out << " != ";
- if (right() && right()->print(out, context))
- found = true;
- out << ")";
- break;
case O_EQ:
out << "(";
if (left() && left()->print(out, context))
@@ -415,7 +404,6 @@ void expr_t::op_t::dump(std::ostream& out, const int depth) const
case O_MUL: out << "O_MUL"; break;
case O_DIV: out << "O_DIV"; break;
- case O_NEQ: out << "O_NEQ"; break;
case O_EQ: out << "O_EQ"; break;
case O_LT: out << "O_LT"; break;
case O_LTE: out << "O_LTE"; break;