summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-15 16:26:26 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-15 16:26:26 -0400
commitfcd7f4f73b50ec02ec1f501a8ebde502c6736850 (patch)
treea3af572793c1a14d0e28a8a9581011beb4017b12 /src/value.cc
parent48d985aacc5106592aa191c707315ee24917aacb (diff)
downloadledger-fcd7f4f73b50ec02ec1f501a8ebde502c6736850.tar.gz
ledger-fcd7f4f73b50ec02ec1f501a8ebde502c6736850.tar.bz2
ledger-fcd7f4f73b50ec02ec1f501a8ebde502c6736850.zip
Removed "total_cost" valexpr, and value_t::cost
Since cost reports are now calculated by setting the amount_ expression, there is no need to track a separate "total cost" entity.
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/value.cc b/src/value.cc
index 6e4574ca..9eb5b2e1 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -1245,22 +1245,6 @@ value_t value_t::strip_annotations(const keep_details_t& what_to_keep) const
return NULL_VALUE;
}
-value_t value_t::cost() const
-{
- switch (type()) {
- case INTEGER:
- case AMOUNT:
- case BALANCE:
- return *this;
-
- default:
- break;
- }
-
- throw_(value_error, "Cannot find the cost of " << label());
- return NULL_VALUE;
-}
-
void value_t::print(std::ostream& out,
const int first_width,
const int latter_width,