summaryrefslogtreecommitdiff
path: root/src/op.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-07 18:42:12 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-07 18:42:12 -0400
commit0c8970584e2b3a09673c60f6a32c2f0ac51db230 (patch)
tree273d22650313c32dc530e693111c315da2df770f /src/op.cc
parent1de748fc133b005f44ca0a3fe496aede3ae4c35d (diff)
downloadfork-ledger-0c8970584e2b3a09673c60f6a32c2f0ac51db230.tar.gz
fork-ledger-0c8970584e2b3a09673c60f6a32c2f0ac51db230.tar.bz2
fork-ledger-0c8970584e2b3a09673c60f6a32c2f0ac51db230.zip
Removed handling of the unnused INDEX operator.
Diffstat (limited to 'src/op.cc')
-rw-r--r--src/op.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/op.cc b/src/op.cc
index 53f5b9e6..dc17bce2 100644
--- a/src/op.cc
+++ b/src/op.cc
@@ -140,16 +140,6 @@ value_t expr_t::op_t::calc(scope_t& scope, ptr_op_t * context)
return (right()->calc(scope, context).as_mask()
.match(left()->calc(scope, context).to_string()));
- case INDEX: {
- const call_scope_t& args(downcast<const call_scope_t>(scope));
-
- if (as_index() < args.size())
- return args[as_index()];
- else
- throw_(calc_error, "Reference to non-existing argument " << as_index());
- break;
- }
-
case O_EQ:
return left()->calc(scope, context) == right()->calc(scope, context);
case O_LT:
@@ -246,10 +236,6 @@ bool expr_t::op_t::print(std::ostream& out, const context_t& context) const
out << "<FUNCTION>";
break;
- case INDEX:
- out << '@' << as_index();
- break;
-
case O_NOT:
out << "!(";
if (left() && left()->print(out, context))
@@ -437,10 +423,6 @@ void expr_t::op_t::dump(std::ostream& out, const int depth) const
out << "IDENT: " << as_ident();
break;
- case INDEX:
- out << "INDEX: " << as_index();
- break;
-
case FUNCTION:
out << "FUNCTION";
break;