From 43b07fbab3b4c144eca4a771524e59c531ffa074 Mon Sep 17 00:00:00 2001 From: CandyAngel Date: Tue, 31 Mar 2020 12:47:53 +0100 Subject: Make explicit option a no-op Fixes #1877 --- src/journal.cc | 13 ------------- src/journal.h | 5 ----- src/session.cc | 5 +++-- 3 files changed, 3 insertions(+), 20 deletions(-) (limited to 'src') diff --git a/src/journal.cc b/src/journal.cc index 6b28f519..cffab35f 100644 --- a/src/journal.cc +++ b/src/journal.cc @@ -86,13 +86,8 @@ void journal_t::initialize() { master = new account_t; bucket = NULL; - fixed_accounts = false; - fixed_payees = false; - fixed_commodities = false; - fixed_metadata = false; current_context = NULL; was_loaded = false; - force_checking = false; check_payees = false; day_break = false; checking_style = CHECK_NORMAL; @@ -148,8 +143,6 @@ account_t * journal_t::register_account(const string& name, post_t * post, if (checking_style == CHECK_WARNING || checking_style == CHECK_ERROR) { if (! result->has_flags(ACCOUNT_KNOWN)) { if (! post) { - if (force_checking) - fixed_accounts = true; result->add_flags(ACCOUNT_KNOWN); } else if (checking_style == CHECK_WARNING) { @@ -230,8 +223,6 @@ string journal_t::register_payee(const string& name, xact_t * xact) if (i == known_payees.end()) { if (! xact) { - if (force_checking) - fixed_payees = true; known_payees.insert(name); } else if (checking_style == CHECK_WARNING) { @@ -259,8 +250,6 @@ void journal_t::register_commodity(commodity_t& comm, if (checking_style == CHECK_WARNING || checking_style == CHECK_ERROR) { if (! comm.has_flags(COMMODITY_KNOWN)) { if (context.which() == 0) { - if (force_checking) - fixed_commodities = true; comm.add_flags(COMMODITY_KNOWN); } else if (checking_style == CHECK_WARNING) { @@ -281,8 +270,6 @@ void journal_t::register_metadata(const string& key, const value_t& value, if (i == known_tags.end()) { if (context.which() == 0) { - if (force_checking) - fixed_metadata = true; known_tags.insert(key); } else if (checking_style == CHECK_WARNING) { diff --git a/src/journal.h b/src/journal.h index 0b0c7850..3203d3c9 100644 --- a/src/journal.h +++ b/src/journal.h @@ -110,12 +110,7 @@ public: std::list sources; std::set known_payees; std::set known_tags; - bool fixed_accounts; - bool fixed_payees; - bool fixed_commodities; - bool fixed_metadata; bool was_loaded; - bool force_checking; bool check_payees; bool day_break; bool recursive_aliases; diff --git a/src/session.cc b/src/session.cc index 427850d9..569cbc24 100644 --- a/src/session.cc +++ b/src/session.cc @@ -113,8 +113,9 @@ std::size_t session_t::read_data(const string& master_account) if (HANDLED(no_aliases)) journal->no_aliases = true; - if (HANDLED(explicit)) - journal->force_checking = true; + if (HANDLED(explicit)) { + // No-op + } if (HANDLED(check_payees)) journal->check_payees = true; -- cgit v1.2.3