From 7473c625083ab14246760f60afb93397dccfe7c5 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 9 Oct 2013 15:26:22 -0700 Subject: remove dead code --- .../lib/active_record/associations/join_dependency.rb | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb index d0c920ce4c..2fdb1970e1 100644 --- a/activerecord/lib/active_record/associations/join_dependency.rb +++ b/activerecord/lib/active_record/associations/join_dependency.rb @@ -138,19 +138,6 @@ module ActiveRecord } 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) -- cgit v1.2.3