Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

remove unnecessary methods from Spree::FrontendHelper

Łukasz Adamczyk12a8aee5fee5
diff --git a/frontend/app/helpers/spree/frontend_helper.rb b/frontend/app/helpers/spree/frontend_helper.rb
index 292d10a014..0c779d6646 100644
--- a/frontend/app/helpers/spree/frontend_helper.rb
+++ b/frontend/app/helpers/spree/frontend_helper.rb
@@ -336,25 +336,6 @@ module Spree
private
- def price_range(min_amount, max_amount)
- Filters::PriceRange.new(
- min_price: price(min_amount),
- max_price: price(max_amount)
- )
- end
-
- def less_than_price_range(amount)
- Filters::LessThanPriceRange.new(price: price(amount))
- end
-
- def more_than_price_range(amount)
- Filters::MoreThanPriceRange.new(price: price(amount))
- end
-
- def price(amount)
- Filters::Price.new(amount: amount, currency: current_currency)
- end
-
def formatted_price(value)
Spree::Money.new(value, currency: current_currency, no_cents_if_whole: true).to_s
end