From 1650ccd55a2ad5152446fb12173e984d0f4e3ed0 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Fri, 17 Jan 2025 13:52:00 +1100 Subject: [PATCH] Remove unused StockLocation#backorderable? --- app/models/spree/stock_location.rb | 4 ---- spec/models/spree/stock_location_spec.rb | 4 ---- 2 files changed, 8 deletions(-) diff --git a/app/models/spree/stock_location.rb b/app/models/spree/stock_location.rb index b52288ae4b..fe3044c654 100644 --- a/app/models/spree/stock_location.rb +++ b/app/models/spree/stock_location.rb @@ -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 diff --git a/spec/models/spree/stock_location_spec.rb b/spec/models/spree/stock_location_spec.rb index 77a555ed0a..c885bc8543 100644 --- a/spec/models/spree/stock_location_spec.rb +++ b/spec/models/spree/stock_location_spec.rb @@ -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