From cce65b8dd2f9cb22a20acb891a8a83cdfce90c7b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 31 Jan 2009 04:58:16 -0400 Subject: Added a more efficient amount_t::operator==, which changed semantics slightly. --- src/amount.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/amount.h') diff --git a/src/amount.h b/src/amount.h index ef9fc4b0..d5c759db 100644 --- a/src/amount.h +++ b/src/amount.h @@ -781,12 +781,6 @@ inline std::istream& operator>>(std::istream& in, amount_t& amt) { namespace ledger { -inline bool amount_t::operator==(const amount_t& amt) const { - if (commodity() != amt.commodity()) - return false; - return compare(amt) == 0; -} - inline commodity_t& amount_t::commodity() const { return has_commodity() ? *commodity_ : *current_pool->null_commodity; } -- cgit v1.2.3