From f6b14cc34aaf3545c9709bb72eb1db643488c616 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 22 Feb 2009 19:00:55 -0400 Subject: The entry command no longer inherits item state --- src/derive.cc | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/derive.cc b/src/derive.cc index a71dc8bb..8ea07c87 100644 --- a/src/derive.cc +++ b/src/derive.cc @@ -39,7 +39,6 @@ namespace { { optional date; optional eff_date; - item_t::state_t state; optional code; optional note; mask_t payee_mask; @@ -54,7 +53,7 @@ namespace { std::list xacts; - entry_template_t() : state(item_t::UNCLEARED) {} + entry_template_t() {} void dump(std::ostream& out) const { @@ -66,19 +65,6 @@ namespace { if (eff_date) out << "Effective: " << *eff_date << std::endl; - out << "State: "; - switch (state) { - case item_t::UNCLEARED: - out << "uncleared" << std::endl; - break; - case item_t::CLEARED: - out << "cleared" << std::endl; - break; - case item_t::PENDING: - out << "pending" << std::endl; - break; - } - if (code) out << "Code: " << *code << std::endl; if (note) @@ -271,8 +257,6 @@ namespace { if (tmpl.eff_date) added->_date_eff = tmpl.eff_date; - added->set_state(tmpl.state); - if (matching) { added->payee = matching->payee; added->code = matching->code; -- cgit v1.2.3