From 03a0002d9f8fde60bd4ce87e7f5979eddc0ad3a4 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 28 Jul 2010 09:33:51 -0700 Subject: #hash #eql? and #== were only used in tests. removed them and wrote better tests --- lib/arel/algebra/relations/operations/join.rb | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'lib/arel') diff --git a/lib/arel/algebra/relations/operations/join.rb b/lib/arel/algebra/relations/operations/join.rb index 72b4c9b8fe..bfb7727313 100644 --- a/lib/arel/algebra/relations/operations/join.rb +++ b/lib/arel/algebra/relations/operations/join.rb @@ -15,10 +15,6 @@ module Arel relation1.name end - def hash - @hash ||= :relation1.hash - end - def attributes @attributes ||= (relation1.externalize.attributes | relation2.externalize.attributes).bind(self) end @@ -61,16 +57,6 @@ module Arel end end - def == other - super || Join === other && - relation1 == other.relation1 && - relation2 == other.relation2 && - predicates == other.predicates - end - - # FIXME remove this. :'( - alias :eql? :== - def eval result = [] relation1.call.each do |row1| -- cgit v1.2.3