From 5fbfc21b67f4bd68502e186024636f5bf4350f90 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 8 Sep 2012 09:52:26 +0000 Subject: internal.h: allocator function in rb_classext_t * internal.h (struct rb_classext_struct): move allocator function into rb_classext_t from ordinary method table. [ruby-dev:46121] [Feature #6993] * object.c (rb_obj_alloc): call allocator function directly. * vm_method.c (rb_define_alloc_func, rb_undef_alloc_func) (rb_get_alloc_func): use allocator function in rb_classext_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'vm_eval.c') diff --git a/vm_eval.c b/vm_eval.c index 10eae1af33..897b0b0659 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -571,10 +571,6 @@ method_missing(VALUE obj, ID id, int argc, const VALUE *argv, int call_status) if (id == idMethodMissing) { raise_method_missing(th, argc, argv, obj, call_status | NOEX_MISSING); } - else if (id == ID_ALLOCATOR) { - rb_raise(rb_eTypeError, "allocator undefined for %s", - rb_class2name(obj)); - } if (argc < 0x100) { nargv = ALLOCA_N(VALUE, argc + 1); -- cgit v1.2.3