Skip to content

Commit

Permalink
Merge pull request #8569 from Matt-Yorkley/dead-code-backordered
Browse files Browse the repository at this point in the history
Remove dead code: Order#backordered?
  • Loading branch information
mkllnk authored Dec 8, 2021
2 parents d34478f + 87fe341 commit 65e5291
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions app/models/spree/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,6 @@ def payment_required?
total.to_f > 0.0 && !skip_payment_for_subscription?
end

def backordered?
shipments.any?(&:backordered?)
end

# Returns the relevant zone (if any) to be used for taxation purposes.
# Uses default tax zone unless there is a specific match
def tax_zone
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ module Order
let(:order) { create(:order) }
let(:updater) { OrderManagement::Order::Updater.new(order) }

before { allow(order).to receive(:backordered?) { false } }

context "updating order totals" do
before do
2.times { create(:line_item, order: order, price: 10) }
Expand Down

0 comments on commit 65e5291

Please sign in to comment.