summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-03 23:18:18 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-03 23:18:18 -0400
commitf76b271d24f1464d33bbd05e4e7e14c2c80ee3e7 (patch)
tree2e0a6079fa73845429fafafef132dbeb584ebb9d /src
parente8bf3da053e7e1aa2aae01f179d94be414a62ff1 (diff)
downloadfork-ledger-f76b271d24f1464d33bbd05e4e7e14c2c80ee3e7.tar.gz
fork-ledger-f76b271d24f1464d33bbd05e4e7e14c2c80ee3e7.tar.bz2
fork-ledger-f76b271d24f1464d33bbd05e4e7e14c2c80ee3e7.zip
Removed a redundant check
Diffstat (limited to 'src')
-rw-r--r--src/amount.cc3
1 files changed, 1 insertions, 2 deletions
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 &&