From d2f4f8ccb25a8efadda3e44dc59e1e4203a86a14 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Thu, 6 Sep 2018 20:28:46 +0100 Subject: [PATCH] Removed unused shipping_method.within_zone, customization not needed --- app/models/spree/shipping_method_decorator.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/models/spree/shipping_method_decorator.rb b/app/models/spree/shipping_method_decorator.rb index 6a512737bd..bd2a16af12 100644 --- a/app/models/spree/shipping_method_decorator.rb +++ b/app/models/spree/shipping_method_decorator.rb @@ -42,14 +42,6 @@ Spree::ShippingMethod.class_eval do ] end - def within_zone?(order) - if order.ship_address - zone && zone.include?(order.ship_address) - else - true # Shipping methods are available before we've selected an address - end - end - def has_distributor?(distributor) self.distributors.include?(distributor) end