From 04db8dbd37746f0ab3036dcaf3c1ef9a173d8ddb Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Mon, 29 Jan 2024 13:21:13 +1100 Subject: [PATCH] Remove unused method --- app/models/invoice/data_presenter/line_item.rb | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/models/invoice/data_presenter/line_item.rb b/app/models/invoice/data_presenter/line_item.rb index a1177bf990..2b43a1a4d8 100644 --- a/app/models/invoice/data_presenter/line_item.rb +++ b/app/models/invoice/data_presenter/line_item.rb @@ -36,17 +36,6 @@ class Invoice Spree::Money.new(price_with_adjustments - ((included_tax + fee_tax) / quantity), currency:) end - # TODO seems useless - def display_line_items_taxes(display_zero: true) - if included_tax.positive? - Spree::Money.new( included_tax, currency:) - elsif added_tax.positive? - Spree::Money.new( added_tax, currency:) - elsif display_zero - Spree::Money.new(0.00, currency:) - end - end - def display_line_item_tax_rates tax_rates.map { |tr| number_to_percentage(tr.amount * 100, precision: 1) }.join(", ") end