Remove unused StockLocation#backorderable?

This commit is contained in:
Maikel Linke
2025-01-17 13:52:00 +11:00
parent 531c068347
commit 1650ccd55a
2 changed files with 0 additions and 8 deletions

View File

@@ -35,9 +35,5 @@ module Spree
def count_on_hand(variant)
stock_item(variant).try(:count_on_hand)
end
def backorderable?(variant)
stock_item(variant).try(:backorderable?)
end
end
end

View File

@@ -30,9 +30,5 @@ module Spree
it 'finds a count_on_hand for a variant' do
expect(subject.count_on_hand(variant)).to eq 15
end
it 'finds determines if you a variant is backorderable' do
expect(subject.backorderable?(variant)).to eq false
end
end
end