diff options
author | CandyAngel <candyangel@electricjungle.org> | 2019-08-27 21:19:05 +0100 |
---|---|---|
committer | CandyAngel <candyangel@electricjungle.org> | 2019-08-27 21:19:05 +0100 |
commit | cdd6b7c0ac10a15b8f8853b7610ae58037c261aa (patch) | |
tree | ed39cc19e0645f53eafef88897349aa9de299874 /src | |
parent | 0848f2b75d2800821f86e4e6eeabab86710906ff (diff) | |
download | fork-ledger-cdd6b7c0ac10a15b8f8853b7610ae58037c261aa.tar.gz fork-ledger-cdd6b7c0ac10a15b8f8853b7610ae58037c261aa.tar.bz2 fork-ledger-cdd6b7c0ac10a15b8f8853b7610ae58037c261aa.zip |
Remove know-ification of elements due to post state
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); } |