Permalink
Browse files

remove dead code

  • Loading branch information...
1 parent 0cfb1de commit 7473c625083ab14246760f60afb93397dccfe7c5 @tenderlove tenderlove committed Oct 9, 2013
Showing with 0 additions and 13 deletions.
  1. +0 −13 activerecord/lib/active_record/associations/join_dependency.rb
@@ -138,19 +138,6 @@ def find_node(target_node)
}
end
- def node_cmp(parent, join_part)
- return true if parent == join_part
- return unless parent.class == join_part.class
-
- case parent
- when JoinBase
- parent.base_klass == join_part.base_klass
- else
- parent.reflection == join_part.reflection &&
- node_cmp(parent.parent, join_part.parent)
- end
- end
-
def remove_duplicate_results!(base, records, associations)
associations.each do |node|
reflection = base.reflect_on_association(node.name)

0 comments on commit 7473c62

Please sign in to comment.