From 773f5e5a0b172754289de527bcba6b923bbc3d0e Mon Sep 17 00:00:00 2001 From: Nikolay Ponomarev Date: Wed, 27 Dec 2017 23:33:54 +0300 Subject: Remove Unused `require` It looks like they are left from old design --- lib/arel/nodes/node.rb | 2 -- lib/arel/select_manager.rb | 2 -- lib/arel/tree_manager.rb | 2 -- lib/arel/visitors/to_sql.rb | 3 --- test/collectors/test_bind.rb | 2 -- test/collectors/test_composite.rb | 1 - test/helper.rb | 1 - test/nodes/test_binary.rb | 1 - test/nodes/test_table_alias.rb | 1 - test/visitors/test_depth_first.rb | 1 - test/visitors/test_to_sql.rb | 2 +- 11 files changed, 1 insertion(+), 17 deletions(-) diff --git a/lib/arel/nodes/node.rb b/lib/arel/nodes/node.rb index 34e71063af..d2e6313dda 100644 --- a/lib/arel/nodes/node.rb +++ b/lib/arel/nodes/node.rb @@ -1,6 +1,4 @@ # frozen_string_literal: true -require 'arel/collectors/sql_string' - module Arel module Nodes ### diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index 0b35176842..a88dcd320c 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -1,6 +1,4 @@ # frozen_string_literal: true -require 'arel/collectors/sql_string' - module Arel class SelectManager < Arel::TreeManager include Arel::Crud diff --git a/lib/arel/tree_manager.rb b/lib/arel/tree_manager.rb index 0542442404..b237bf368d 100644 --- a/lib/arel/tree_manager.rb +++ b/lib/arel/tree_manager.rb @@ -1,6 +1,4 @@ # frozen_string_literal: true -require 'arel/collectors/sql_string' - module Arel class TreeManager include Arel::FactoryMethods diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index f8c239e8ef..2b5c43b173 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -1,7 +1,4 @@ # frozen_string_literal: true -require 'bigdecimal' -require 'date' - module Arel module Visitors class UnsupportedVisitError < StandardError diff --git a/test/collectors/test_bind.rb b/test/collectors/test_bind.rb index 6b4b651cf7..62fd911a0f 100644 --- a/test/collectors/test_bind.rb +++ b/test/collectors/test_bind.rb @@ -1,8 +1,6 @@ # frozen_string_literal: true require 'helper' -require 'arel/collectors/bind' - module Arel module Collectors class TestBind < Arel::Test diff --git a/test/collectors/test_composite.rb b/test/collectors/test_composite.rb index b47c37db73..3d49b390e8 100644 --- a/test/collectors/test_composite.rb +++ b/test/collectors/test_composite.rb @@ -3,7 +3,6 @@ require 'helper' require 'arel/collectors/bind' require 'arel/collectors/composite' -require 'arel/collectors/sql_string' module Arel module Collectors diff --git a/test/helper.rb b/test/helper.rb index 022ba1dae6..3eecfb79b6 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true require 'rubygems' require 'minitest/autorun' -require 'fileutils' require 'arel' require 'support/fake_record' diff --git a/test/nodes/test_binary.rb b/test/nodes/test_binary.rb index 8e3025a440..ef23a3930b 100644 --- a/test/nodes/test_binary.rb +++ b/test/nodes/test_binary.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true require 'helper' -require 'set' module Arel module Nodes diff --git a/test/nodes/test_table_alias.rb b/test/nodes/test_table_alias.rb index 39040e6352..911114d938 100644 --- a/test/nodes/test_table_alias.rb +++ b/test/nodes/test_table_alias.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true require 'helper' -require 'ostruct' module Arel module Nodes diff --git a/test/visitors/test_depth_first.rb b/test/visitors/test_depth_first.rb index 0c7f7ccd34..832843265c 100644 --- a/test/visitors/test_depth_first.rb +++ b/test/visitors/test_depth_first.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true require 'helper' -require 'set' module Arel module Visitors diff --git a/test/visitors/test_to_sql.rb b/test/visitors/test_to_sql.rb index eb6eedc55d..77756b9e99 100644 --- a/test/visitors/test_to_sql.rb +++ b/test/visitors/test_to_sql.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true require 'helper' -require 'set' +require 'bigdecimal' module Arel module Visitors -- cgit v1.2.3