summaryrefslogtreecommitdiff
path: root/walk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'walk.cc')
-rw-r--r--walk.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/walk.cc b/walk.cc
index 4bb6a38a..300988a1 100644
--- a/walk.cc
+++ b/walk.cc
@@ -7,8 +7,6 @@
namespace ledger {
-bool show_lots = false;
-
template <>
bool compare_items<transaction_t>::operator()(const transaction_t * left,
const transaction_t * right)
@@ -44,7 +42,7 @@ void add_transaction_to(const transaction_t& xact, value_t& value)
transaction_xdata_(xact).dflags & TRANSACTION_COMPOSITE) {
value += transaction_xdata_(xact).composite_amount;
}
- else if (xact.cost || xact.amount.commodity().annotated || value) {
+ else if (xact.cost || value) {
value.add(xact.amount, xact.cost);
}
else {