From 31b68bbebcf448406020a8177efe6ae2f381d5cb Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 16 Mar 2006 13:06:59 +0000 Subject: *** empty log message *** --- amount.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'amount.h') diff --git a/amount.h b/amount.h index 8019680c..5df11817 100644 --- a/amount.h +++ b/amount.h @@ -595,29 +595,6 @@ inline commodity_t& amount_t::commodity() const { return *commodity_; } -inline amount_t amount_t::price() const { - if (commodity_ && commodity_->annotated) { - amount_t temp(((annotated_commodity_t *)commodity_)->price); - temp *= *this; - DEBUG_PRINT("amounts.commodities", - "Returning price of " << *this << " = " << temp); - return temp; - } else { - return 0L; - } -} - -inline std::time_t amount_t::date() const { - if (commodity_ && commodity_->annotated) { - DEBUG_PRINT("amounts.commodities", - "Returning date of " << *this << " = " - << ((annotated_commodity_t *)commodity_)->date); - return ((annotated_commodity_t *)commodity_)->date; - } else { - return 0L; - } -} - class amount_error : public error { public: amount_error(const std::string& reason) throw() : error(reason) {} -- cgit v1.2.3