From f76b271d24f1464d33bbd05e4e7e14c2c80ee3e7 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 3 Jun 2010 23:18:18 -0400 Subject: Removed a redundant check --- src/amount.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/amount.cc') diff --git a/src/amount.cc b/src/amount.cc index d9b7c82c..2837178c 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -738,8 +738,7 @@ amount_t::value(const bool primary_only, if (has_commodity() && (! primary_only || ! commodity().has_flags(COMMODITY_PRIMARY))) { if (in_terms_of && - (commodity() == *in_terms_of || - commodity().referent() == in_terms_of->referent())) { + commodity().referent() == in_terms_of->referent()) { return *this; } else if (has_annotation() && annotation().price && -- cgit v1.2.3