diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2017-12-28 09:19:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-28 09:19:34 -0800 |
commit | 6cf061ed6f3f9c8128385765c07eaa4f8a43bd34 (patch) | |
tree | 90157d2ed04ec2fe1282c833e1af9ba529bc51c4 | |
parent | bb0e60f40c1aa38096122c4a4836c8db6bf56ff9 (diff) | |
parent | 773f5e5a0b172754289de527bcba6b923bbc3d0e (diff) | |
download | rails-6cf061ed6f3f9c8128385765c07eaa4f8a43bd34.tar.gz rails-6cf061ed6f3f9c8128385765c07eaa4f8a43bd34.tar.bz2 rails-6cf061ed6f3f9c8128385765c07eaa4f8a43bd34.zip |
Merge pull request #513 from itsNikolay/remove_unused_requires
Remove Unused `require`
-rw-r--r-- | lib/arel/nodes/node.rb | 2 | ||||
-rw-r--r-- | lib/arel/select_manager.rb | 2 | ||||
-rw-r--r-- | lib/arel/tree_manager.rb | 2 | ||||
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 3 | ||||
-rw-r--r-- | test/collectors/test_bind.rb | 2 | ||||
-rw-r--r-- | test/collectors/test_composite.rb | 1 | ||||
-rw-r--r-- | test/helper.rb | 1 | ||||
-rw-r--r-- | test/nodes/test_binary.rb | 1 | ||||
-rw-r--r-- | test/nodes/test_table_alias.rb | 1 | ||||
-rw-r--r-- | test/visitors/test_depth_first.rb | 1 | ||||
-rw-r--r-- | test/visitors/test_to_sql.rb | 2 |
11 files changed, 1 insertions, 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 |