From 7b37ac545590fdab205fb17576f7c4e106672996 Mon Sep 17 00:00:00 2001 From: Alberto Vena Date: Mon, 27 Mar 2023 17:39:08 +0200 Subject: [PATCH] [Backend] Remove line_item_shipment_price backend helper Use Spree::LineItem#display_amount instead. Ref https://github.com/solidusio/solidus/pull/4876 --- backend/app/helpers/spree/admin/orders_helper.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/backend/app/helpers/spree/admin/orders_helper.rb b/backend/app/helpers/spree/admin/orders_helper.rb index 16e667f7eae..ef14aac8d6a 100644 --- a/backend/app/helpers/spree/admin/orders_helper.rb +++ b/backend/app/helpers/spree/admin/orders_helper.rb @@ -22,13 +22,6 @@ def event_links safe_join(links, " ".html_safe) end - # @deprecated use `Spree::LineItem#display_amount` instead - def line_item_shipment_price(line_item, quantity) - Spree::Money.new(line_item.price * quantity, { currency: line_item.currency }) - end - deprecate deprecator: Spree::Deprecation, - line_item_shipment_price: "use Spree::LineItem#display_amount instead" - # Addresss Verification System response code # # @see https://en.wikipedia.org/wiki/Address_verification_service