aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-10-09 15:26:22 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-10-09 15:26:22 -0700
commit7473c625083ab14246760f60afb93397dccfe7c5 (patch)
tree49e67286bb10192998497e43691c2a2eedbe9183 /activerecord/lib/active_record/associations
parent0cfb1de4583b5926bbb10de39d80d8537a7e6482 (diff)
downloadrails-7473c625083ab14246760f60afb93397dccfe7c5.tar.gz
rails-7473c625083ab14246760f60afb93397dccfe7c5.tar.bz2
rails-7473c625083ab14246760f60afb93397dccfe7c5.zip
remove dead code
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r--activerecord/lib/active_record/associations/join_dependency.rb13
1 files changed, 0 insertions, 13 deletions
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)