Removed a redundant check

This commit is contained in:
John Wiegley 2010-06-03 23:18:18 -04:00
parent e8bf3da053
commit f76b271d24

View file

@ -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 &&