From 0c8970584e2b3a09673c60f6a32c2f0ac51db230 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 7 Feb 2009 18:42:12 -0400 Subject: Removed handling of the unnused INDEX operator. --- src/op.h | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'src/op.h') diff --git a/src/op.h b/src/op.h index ad900cc5..344c752f 100644 --- a/src/op.h +++ b/src/op.h @@ -67,19 +67,17 @@ private: mutable short refc; ptr_op_t left_; - variant // used by all binary operators - data; + function_t // used by terminal FUNCTION + > data; public: enum kind_t { // Constants VALUE, IDENT, - INDEX, CONSTANTS, @@ -138,20 +136,6 @@ public: assert(refc == 0); } - bool is_index() const { - return data.type() == typeid(std::size_t); - } - std::size_t& as_index_lval() { - assert(kind == INDEX); - return boost::get(data); - } - const std::size_t& as_index() const { - return const_cast(this)->as_index_lval(); - } - void set_index(std::size_t val) { - data = val; - } - bool is_value() const { if (kind == VALUE) { assert(data.type() == typeid(value_t)); -- cgit v1.2.3