Remove unused StockLocation#stock_item_or_create

This commit is contained in:
Maikel Linke
2025-01-17 14:55:19 +11:00
parent 450576a938
commit 34fdcface2

View File

@@ -27,9 +27,5 @@ module Spree
def stock_movements
StockMovement.all
end
def stock_item_or_create(variant)
stock_item(variant) || stock_items.create(variant:)
end
end
end