From ea27d1b45a5ff975a1e90e3e9f4b74ff8d34056e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 29 Jul 2008 20:10:03 -0400 Subject: Moved around and renamed a very large amount of code in order to rationalize the way that value expressions extract information from journal objects. --- scope.cc | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'scope.cc') diff --git a/scope.cc b/scope.cc index 872c5454..7a349949 100644 --- a/scope.cc +++ b/scope.cc @@ -52,21 +52,8 @@ void symbol_scope_t::define(const string& name, expr_t::ptr_op_t def) } } -value_t get_amount(scope_t& scope) -{ - assert("I can't get the amount!"); - return NULL_VALUE; -} - expr_t::ptr_op_t symbol_scope_t::lookup(const string& name) { - switch (name[0]) { - case 'a': - if (name[1] == '\0' || name == "amount") - return WRAP_FUNCTOR(bind(get_amount, _1)); - break; - } - symbol_map::const_iterator i = symbols.find(name); if (i != symbols.end()) return (*i).second; -- cgit v1.2.3