stop duping values from Hash#values

This commit is contained in:
Yukihiro Matsumoto
2012-05-30 16:25:22 +09:00
parent a4a48e3da1
commit 7cf607bb75
-2
View File
@@ -1043,8 +1043,6 @@ mrb_hash_values(mrb_state *mrb, mrb_value hash)
for (k = kh_begin(h); k != kh_end(h); k++) {
if (kh_exist(h, k)){
mrb_value v = kh_value(h,k);
if ( !mrb_special_const_p(v) )
v = mrb_obj_dup(mrb, v);
mrb_ary_push(mrb, ary, v);
}
}