summaryrefslogtreecommitdiffhomepage
path: root/src/hash.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-02-08 13:44:31 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-02-08 13:44:31 +0900
commit4a2c37df935495fd612377d67bdba0582ad1813e (patch)
tree6af67d2f201945ac528ec479cd234017914b977b /src/hash.c
parent5da7bd3a9133f03eb259fd9858cb08fa56bc53ac (diff)
downloadmruby-4a2c37df935495fd612377d67bdba0582ad1813e.tar.gz
mruby-4a2c37df935495fd612377d67bdba0582ad1813e.zip
made mrb_define_class to return existing class, with heavy refactoring
Diffstat (limited to 'src/hash.c')
-rw-r--r--src/hash.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/hash.c b/src/hash.c
index 3bfffc0f7..e1ff3599f 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -1227,7 +1227,6 @@ mrb_init_hash(mrb_state *mrb)
h = mrb->hash_class = mrb_define_class(mrb, "Hash", mrb->object_class);
MRB_SET_INSTANCE_TT(h, MRB_TT_HASH);
- mrb_include_module(mrb, h, mrb_class_get(mrb, "Enumerable"));
mrb_define_method(mrb, h, "==", mrb_hash_equal, MRB_ARGS_REQ(1)); /* 15.2.13.4.1 */
mrb_define_method(mrb, h, "[]", mrb_hash_aget, MRB_ARGS_REQ(1)); /* 15.2.13.4.2 */
mrb_define_method(mrb, h, "[]=", mrb_hash_aset, MRB_ARGS_REQ(2)); /* 15.2.13.4.3 */