Skip to content

Commit

Permalink
Remove Dataset#to_table_reference protected method, no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Jun 18, 2009
1 parent 0c91b82 commit ee4f806
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
=== HEAD

* Remove Dataset#to_table_reference protected method, no longer used (jeremyevans)

* Fix thread-safety issue in stored procedure code (jeremyevans)

* Remove SavepointTransactions module, integrate into Database code (jeremyevans)
Expand Down
7 changes: 0 additions & 7 deletions lib/sequel/dataset/sql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -858,13 +858,6 @@ def compound_from_self
(@opts[:limit] || @opts[:order]) ? from_self : self
end

# Returns a table reference for use in the FROM clause. Returns an SQL subquery
# frgament with an optional table alias.
def to_table_reference(table_alias=nil)
s = "(#{sql})"
table_alias ? as_sql(s, table_alias) : s
end

private

# Internal filter method so it works on either the having or where clauses.
Expand Down

0 comments on commit ee4f806

Please sign in to comment.