summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2020-11-09 15:27:31 (GMT)
committerAlan Wu <XrXr@users.noreply.github.com>2020-11-09 21:08:36 (GMT)
commit6817f4c6b1ab58d74bab989de984bd1d84be233c (patch)
tree3807f5e00fcfcda3a32606316d6f97be7c52f080 /class.c
parentcbe869b3707feac4e3de22ab63c40fb881640c53 (diff)
rb_vm_add_root_module(): Remove unused parameter
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3741
Diffstat (limited to 'class.c')
-rw-r--r--class.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/class.c b/class.c
index 857d863..13885d9 100644
--- a/class.c
+++ b/class.c
@@ -626,7 +626,7 @@ boot_defclass(const char *name, VALUE super)
ID id = rb_intern(name);
rb_const_set((rb_cObject ? rb_cObject : obj), id, obj);
- rb_vm_add_root_module(id, obj);
+ rb_vm_add_root_module(obj);
return obj;
}
@@ -748,14 +748,14 @@ rb_define_class(const char *name, VALUE super)
}
/* Class may have been defined in Ruby and not pin-rooted */
- rb_vm_add_root_module(id, klass);
+ rb_vm_add_root_module(klass);
return klass;
}
if (!super) {
rb_raise(rb_eArgError, "no super class for `%s'", name);
}
klass = rb_define_class_id(id, super);
- rb_vm_add_root_module(id, klass);
+ rb_vm_add_root_module(klass);
rb_const_set(rb_cObject, id, klass);
rb_class_inherited(super, klass);
@@ -821,7 +821,7 @@ rb_define_class_id_under(VALUE outer, ID id, VALUE super)
outer, rb_id2str(id), RCLASS_SUPER(klass), super);
}
/* Class may have been defined in Ruby and not pin-rooted */
- rb_vm_add_root_module(id, klass);
+ rb_vm_add_root_module(klass);
return klass;
}
@@ -833,7 +833,7 @@ rb_define_class_id_under(VALUE outer, ID id, VALUE super)
rb_set_class_path_string(klass, outer, rb_id2str(id));
rb_const_set(outer, id, klass);
rb_class_inherited(super, klass);
- rb_vm_add_root_module(id, klass);
+ rb_vm_add_root_module(klass);
rb_gc_register_mark_object(klass);
return klass;
@@ -867,11 +867,11 @@ rb_define_module(const char *name)
name, rb_obj_class(module));
}
/* Module may have been defined in Ruby and not pin-rooted */
- rb_vm_add_root_module(id, module);
+ rb_vm_add_root_module(module);
return module;
}
module = rb_define_module_id(id);
- rb_vm_add_root_module(id, module);
+ rb_vm_add_root_module(module);
rb_gc_register_mark_object(module);
rb_const_set(rb_cObject, id, module);