diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/journal.cc | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/journal.cc b/src/journal.cc index 1df7a114..db909bb4 100644 --- a/src/journal.cc +++ b/src/journal.cc @@ -152,9 +152,6 @@ account_t * journal_t::register_account(const string& name, post_t * post, fixed_accounts = true; result->add_flags(ACCOUNT_KNOWN); } - else if (! fixed_accounts && post->_state != item_t::UNCLEARED) { - result->add_flags(ACCOUNT_KNOWN); - } else if (checking_style == CHECK_WARNING) { current_context->warning(_f("Unknown account '%1%'") % result->fullname()); } @@ -237,9 +234,6 @@ string journal_t::register_payee(const string& name, xact_t * xact) fixed_payees = true; known_payees.insert(name); } - else if (! fixed_payees && xact->_state != item_t::UNCLEARED) { - known_payees.insert(name); - } else if (checking_style == CHECK_WARNING) { current_context->warning(_f("Unknown payee '%1%'") % name); } @@ -269,13 +263,6 @@ void journal_t::register_commodity(commodity_t& comm, fixed_commodities = true; comm.add_flags(COMMODITY_KNOWN); } - else if (! fixed_commodities && - ((context.which() == 1 && - boost::get<xact_t *>(context)->_state != item_t::UNCLEARED) || - (context.which() == 2 && - boost::get<post_t *>(context)->_state != item_t::UNCLEARED))) { - comm.add_flags(COMMODITY_KNOWN); - } else if (checking_style == CHECK_WARNING) { current_context->warning(_f("Unknown commodity '%1%'") % comm); } @@ -298,13 +285,6 @@ void journal_t::register_metadata(const string& key, const value_t& value, fixed_metadata = true; known_tags.insert(key); } - else if (! fixed_metadata && - ((context.which() == 1 && - boost::get<xact_t *>(context)->_state != item_t::UNCLEARED) || - (context.which() == 2 && - boost::get<post_t *>(context)->_state != item_t::UNCLEARED))) { - known_tags.insert(key); - } else if (checking_style == CHECK_WARNING) { current_context->warning(_f("Unknown metadata tag '%1%'") % key); } |