From 1a1e05e36d39bdb0e757a2130370d0077b3ee274 Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Thu, 18 Apr 2013 22:45:27 -0700 Subject: [PATCH] Code cleanup. --- lib/bud/executor/join.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/bud/executor/join.rb b/lib/bud/executor/join.rb index 298804d4..2bfa6b60 100644 --- a/lib/bud/executor/join.rb +++ b/lib/bud/executor/join.rb @@ -444,14 +444,7 @@ module PushSHOuterJoin # XXX: duplicates code from PushSHJoin private def insert_item(item, offset) - if @left_is_array and offset == 1 - the_key = @keys.map do |k| - left_subtuple, left_offset = k.first - item[left_subtuple][left_offset] - end - else - the_key = item.values_at(*@key_attnos[offset]) - end + the_key = item.values_at(*@key_attnos[offset]) #build # puts "building #{item.inspect} into @source[#{offset}] on key #{the_key.inspect}"