summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-08 04:44:35 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-08 04:44:35 -0400
commit524c98244ec19e6a0368deb1e05c69955bcf2e34 (patch)
treeceaafacfd6a1ae32be04d9a5b7b1dc42031b7cf1 /src
parentbe6cef93c479056169ab499d03ea212ff22db435 (diff)
downloadledger-524c98244ec19e6a0368deb1e05c69955bcf2e34.tar.gz
ledger-524c98244ec19e6a0368deb1e05c69955bcf2e34.tar.bz2
ledger-524c98244ec19e6a0368deb1e05c69955bcf2e34.zip
Revert "Compute a posting's cost from an annotated price"
This reverts commit ae8ab8106218167036ef386159450b56c328f1b9.
Diffstat (limited to 'src')
-rw-r--r--src/textual.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/textual.cc b/src/textual.cc
index 9f293f29..85b1a14b 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -1065,15 +1065,6 @@ post_t * instance_t::parse_post(char * line,
}
}
}
- else if (post->amount.annotation().price) {
- post->cost = *post->amount.annotation().price * post->amount;
- post->add_flags(POST_COST_CALCULATED);
- DEBUG("textual.parse", "line " << linenum << ": "
- << "cost (based on price annotation) = "
- << post->amount.unrounded() << " * "
- << post->amount.annotation().price->unrounded()
- << " = " << post->cost->unrounded());
- }
}
DEBUG("textual.parse", "line " << linenum << ": "
@@ -1104,7 +1095,6 @@ post_t * instance_t::parse_post(char * line,
p = skip_ws(next);
if (*p) {
post->cost = amount_t();
- post->drop_flags(POST_COST_CALCULATED);
beg = p - line;
ptristream cstream(p, len - beg);