aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/arel/select_manager.rb7
-rw-r--r--lib/arel/visitors.rb1
-rw-r--r--lib/arel/visitors/order_clauses.rb11
-rw-r--r--test/test_select_manager.rb10
4 files changed, 0 insertions, 29 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb
index 5ab2778778..f49f76d98f 100644
--- a/lib/arel/select_manager.rb
+++ b/lib/arel/select_manager.rb
@@ -220,13 +220,6 @@ module Arel
Nodes::SqlLiteral.new sql
end
- def order_clauses
- visitor = Visitors::OrderClauses.new(@engine.connection)
- visitor.accept(@ast).map { |x|
- Nodes::SqlLiteral.new x
- }
- end
-
def join_sources
@ctx.source.right
end
diff --git a/lib/arel/visitors.rb b/lib/arel/visitors.rb
index 8276eace2b..3986ad9ce5 100644
--- a/lib/arel/visitors.rb
+++ b/lib/arel/visitors.rb
@@ -8,7 +8,6 @@ require 'arel/visitors/mssql'
require 'arel/visitors/oracle'
require 'arel/visitors/join_sql'
require 'arel/visitors/where_sql'
-require 'arel/visitors/order_clauses'
require 'arel/visitors/dot'
require 'arel/visitors/ibm_db'
require 'arel/visitors/informix'
diff --git a/lib/arel/visitors/order_clauses.rb b/lib/arel/visitors/order_clauses.rb
deleted file mode 100644
index 11dbfdad2a..0000000000
--- a/lib/arel/visitors/order_clauses.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-module Arel
- module Visitors
- class OrderClauses < Arel::Visitors::ToSql
- private
-
- def visit_Arel_Nodes_SelectStatement o
- o.orders.map { |x| visit x }
- end
- end
- end
-end
diff --git a/test/test_select_manager.rb b/test/test_select_manager.rb
index a0981476fe..6258705e2f 100644
--- a/test/test_select_manager.rb
+++ b/test/test_select_manager.rb
@@ -628,16 +628,6 @@ module Arel
end
end
- describe 'order_clauses' do
- it 'returns order clauses as a list' do
- table = Table.new :users
- manager = Arel::SelectManager.new Table.engine
- manager.from table
- manager.order table[:id]
- manager.order_clauses.first.must_be_like %{ "users"."id" }
- end
- end
-
describe 'group' do
it 'takes an attribute' do
table = Table.new :users