From 67264c047f4c8ab87b2169047d00fb8f33bc08cc Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Mon, 10 May 2021 23:27:39 +0100 Subject: [PATCH] Delete dead code #editable_by? This is junk Spree code from 2010. 11 years old! The method that previous called this was removed long ago... --- app/models/spree/shipment.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/models/spree/shipment.rb b/app/models/spree/shipment.rb index dd4cb87fe6..ac88f43974 100644 --- a/app/models/spree/shipment.rb +++ b/app/models/spree/shipment.rb @@ -160,10 +160,6 @@ module Spree Spree::Money.new(item_cost, currency: currency) end - def editable_by?(_user) - !shipped? - end - def update_amounts return unless fee_adjustment&.amount != cost