Skip to content

Commit

Permalink
[portfolio] remove unused the_price
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Feb 5, 2023
1 parent 928f4f6 commit 68cd8cf
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions gnucash/report/reports/standard/portfolio.scm
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,7 @@
(gnc-pricedb-lookup-nearest-in-time-any-currency-t64
pricedb foreign (time64CanonicalDayTime date)))
(fn (if (and price (> (length price) 0))
(let* ((the_price
(if (gnc-commodity-equiv
foreign
(gnc-price-get-commodity (car price)))
(car price)
(gnc-price-invert (car price))))
(v (gnc-price-get-value (car price))))
(let* ((v (gnc-price-get-value (car price))))
(gnc-price-ref (car price))
(cons (car price) v))
(cons #f (gnc-numeric-zero)))))
Expand Down

0 comments on commit 68cd8cf

Please sign in to comment.