From 24847287e33ced53a036648af4e7cfa8cc19345e Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Fri, 22 Dec 2023 14:21:33 +0100 Subject: [PATCH] remove unnecessary require instructions --- app/controllers/admin/schedules_controller.rb | 1 - app/services/order_cycle_clone.rb | 2 -- app/services/order_cycle_form.rb | 1 - .../app/services/order_management/subscriptions/form.rb | 2 -- spec/lib/reports/enterprise_fee_summary/parameters_spec.rb | 2 -- spec/services/invoice_renderer_spec.rb | 1 - 6 files changed, 9 deletions(-) diff --git a/app/controllers/admin/schedules_controller.rb b/app/controllers/admin/schedules_controller.rb index 31656673120b..46854d254de4 100644 --- a/app/controllers/admin/schedules_controller.rb +++ b/app/controllers/admin/schedules_controller.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true require 'open_food_network/permissions' -require 'order_management/subscriptions/proxy_order_syncer' module Admin class SchedulesController < Admin::ResourceController diff --git a/app/services/order_cycle_clone.rb b/app/services/order_cycle_clone.rb index fffe6a12777a..2d349a4f293f 100644 --- a/app/services/order_cycle_clone.rb +++ b/app/services/order_cycle_clone.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'order_management/subscriptions/proxy_order_syncer' - class OrderCycleClone def initialize(order_cycle) @original_order_cycle = order_cycle diff --git a/app/services/order_cycle_form.rb b/app/services/order_cycle_form.rb index c25c589ce59b..fbcfdf401dd7 100644 --- a/app/services/order_cycle_form.rb +++ b/app/services/order_cycle_form.rb @@ -2,7 +2,6 @@ require 'open_food_network/permissions' require 'open_food_network/order_cycle_form_applicator' -require 'order_management/subscriptions/proxy_order_syncer' class OrderCycleForm def initialize(order_cycle, order_cycle_params, user) diff --git a/engines/order_management/app/services/order_management/subscriptions/form.rb b/engines/order_management/app/services/order_management/subscriptions/form.rb index 8ea469d8b36d..53c0e615cdc8 100644 --- a/engines/order_management/app/services/order_management/subscriptions/form.rb +++ b/engines/order_management/app/services/order_management/subscriptions/form.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'order_management/subscriptions/proxy_order_syncer' - module OrderManagement module Subscriptions class Form diff --git a/spec/lib/reports/enterprise_fee_summary/parameters_spec.rb b/spec/lib/reports/enterprise_fee_summary/parameters_spec.rb index d04d14028347..25b684d5a097 100644 --- a/spec/lib/reports/enterprise_fee_summary/parameters_spec.rb +++ b/spec/lib/reports/enterprise_fee_summary/parameters_spec.rb @@ -2,8 +2,6 @@ require "spec_helper" -require "date_time_string_validator" - module Reporting module Reports module EnterpriseFeeSummary diff --git a/spec/services/invoice_renderer_spec.rb b/spec/services/invoice_renderer_spec.rb index 2818ee8926b6..cbad391a0f39 100644 --- a/spec/services/invoice_renderer_spec.rb +++ b/spec/services/invoice_renderer_spec.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true require 'spec_helper' -require 'spree/payment_methods_helper' describe InvoiceRenderer do include Spree::PaymentMethodsHelper