Permalink
Browse files

Removed some old dev code

  • Loading branch information...
1 parent ca6e7f7 commit 157969a565606277575bd436f64434a2a5b1d4a2 @Khronos Khronos committed May 16, 2011
Showing with 0 additions and 7 deletions.
  1. +0 −7 lib/arel/visitors/informix.rb
@@ -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 @@ def visit_Arel_Nodes_SelectStatement o
].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 @@ def visit_Arel_Nodes_SelectCore o
(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

0 comments on commit 157969a

Please sign in to comment.