summaryrefslogtreecommitdiff
path: root/scope.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-29 20:10:03 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-29 20:10:03 -0400
commitea27d1b45a5ff975a1e90e3e9f4b74ff8d34056e (patch)
tree492a147199ad921959f86e8f0b4ec4edc1eeed46 /scope.cc
parent200d919fe7c8bcf021011c16fb6ec50821444d5e (diff)
downloadledger-ea27d1b45a5ff975a1e90e3e9f4b74ff8d34056e.tar.gz
ledger-ea27d1b45a5ff975a1e90e3e9f4b74ff8d34056e.tar.bz2
ledger-ea27d1b45a5ff975a1e90e3e9f4b74ff8d34056e.zip
Moved around and renamed a very large amount of code in order to rationalize
the way that value expressions extract information from journal objects.
Diffstat (limited to 'scope.cc')
-rw-r--r--scope.cc13
1 files changed, 0 insertions, 13 deletions
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;