1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Removed some old dev code

This commit is contained in:
Martin Little 2011-05-16 09:30:40 -04:00
parent ca6e7f71da
commit 157969a565

View file

@ -1,12 +1,8 @@
module Arel
module Visitors
class Informix < Arel::Visitors::ToSql
@skip = nil
@first = nil
private
def visit_Arel_Nodes_SelectStatement o
# @skip = o.offset if o.offset
# @first = o.limit if o.limit
[
"SELECT",
(visit(o.offset) if o.offset),
@ -17,8 +13,6 @@ module Arel
].compact.join ' '
end
def visit_Arel_Nodes_SelectCore o
# s,f = @skip,@first
# @skip, @first = nil,nil
[
"#{o.projections.map { |x| visit x }.join ', '}",
("FROM #{visit o.froms}" if o.froms),
@ -27,7 +21,6 @@ module Arel
(visit(o.having) if o.having),
].compact.join ' '
end
#(visit(o.offset) if o.offset)
def visit_Arel_Nodes_Offset o
"SKIP #{visit o.expr}"
end