summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index ad53982b16..c86cb1c3ac 100644
--- a/proc.c
+++ b/proc.c
@@ -949,7 +949,6 @@ mnew(VALUE klass, VALUE obj, ID id, VALUE mclass, int scope)
rb_method_flag_t flag = NOEX_UNDEF;
again:
- if (klass) klass = RCLASS_ORIGIN(klass);
me = rb_method_entry_without_refinements(klass, id, &defined_class);
if (UNDEFINED_METHOD_ENTRY_P(me)) {
ID rmiss = rb_intern("respond_to_missing?");