diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-31 04:50:07 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-31 04:50:07 -0400 |
commit | 3909d2678ede154f9a7fe19617973d4daa173c47 (patch) | |
tree | b8d85010bae44f1f4c7020d68e8b840b81da354f /src/balance.cc | |
parent | 97a9b42b2c5ef908e0c47ecfd39771a79f8fa8a2 (diff) | |
download | fork-ledger-3909d2678ede154f9a7fe19617973d4daa173c47.tar.gz fork-ledger-3909d2678ede154f9a7fe19617973d4daa173c47.tar.bz2 fork-ledger-3909d2678ede154f9a7fe19617973d4daa173c47.zip |
Removed most #if 0 blocks and callout comments
Diffstat (limited to 'src/balance.cc')
-rw-r--r-- | src/balance.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/balance.cc b/src/balance.cc index 37628bd2..1c096e01 100644 --- a/src/balance.cc +++ b/src/balance.cc @@ -33,6 +33,7 @@ #include "balance.h" #include "commodity.h" +#include "annotate.h" #include "pool.h" #include "unistring.h" // for justify() @@ -220,10 +221,9 @@ balance_t::commodity_amount(const optional<const commodity_t&>& commodity) const if (amounts.size() == 1) { return amounts.begin()->second; } -#if 0 else if (amounts.size() > 1) { // Try stripping annotations before giving an error. - balance_t temp(strip_annotations()); + balance_t temp(strip_annotations(keep_details_t())); if (temp.amounts.size() == 1) return temp.commodity_amount(commodity); @@ -231,7 +231,6 @@ balance_t::commodity_amount(const optional<const commodity_t&>& commodity) const _("Requested amount of a balance with multiple commodities: %1") << temp); } -#endif } else if (amounts.size() > 0) { amounts_map::const_iterator i = |