From 3a926da4cbffe903d138f8df9f5cb33332ff1030 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 16 Jun 2009 18:49:27 +0100 Subject: When --end is used, set a "terminus" date This means that final balance valuations (with -V or -X) will be done in terms of the date given to --end, rather than based on the current day. Fixes 647D5DB9-DBBB-47C8-80CE-F3F70E3B0253 --- src/session.cc | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/session.cc') diff --git a/src/session.cc b/src/session.cc index 7727c467..2ae09e21 100644 --- a/src/session.cc +++ b/src/session.cc @@ -245,27 +245,12 @@ expr_t::ptr_op_t session_t::lookup(const string& name) { const char * p = name.c_str(); switch (*p) { - case 'd': - if (is_eq(p, "date")) - return MAKE_FUNCTOR(session_t::fn_today); - break; - - case 'n': - if (is_eq(p, "now")) - return MAKE_FUNCTOR(session_t::fn_now); - break; - case 'o': if (WANT_OPT()) { p += OPT_PREFIX_LEN; if (option_t * handler = lookup_option(p)) return MAKE_OPT_HANDLER(session_t, handler); } break; - - case 't': - if (is_eq(p, "today")) - return MAKE_FUNCTOR(session_t::fn_today); - break; } // Check if they are trying to access an option's setting or value. -- cgit v1.2.3