Skip to content

Commit 2031992

Browse files
committed
Remove Set#to_h
This overrides Enumerable#to_h, but doesn't handle a block, breaking backwards compatibility. Set#to_h was added in the marshalling support commit, but isn't necessary for that, as the underlying function is called. Remove the method definition to restore backwards compatibility.
1 parent b758b6f commit 2031992

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

set.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2184,7 +2184,6 @@ Init_Set(void)
21842184
rb_define_method(rb_cSet, "superset?", set_i_superset, 1);
21852185
rb_define_alias(rb_cSet, ">=", "superset?");
21862186
rb_define_method(rb_cSet, "to_a", set_i_to_a, 0);
2187-
rb_define_method(rb_cSet, "to_h", set_i_to_h, 0);
21882187
rb_define_method(rb_cSet, "to_set", set_i_to_set, -1);
21892188

21902189
/* :nodoc: */

0 commit comments

Comments
 (0)