mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove useless code [Bug #18185]
RMODULE_SUPER is initialized to 0, as the uninitialized module
flag is used since b929af430c
.
This commit is contained in:
parent
5e7cd480f9
commit
da43c8822c
1 changed files with 0 additions and 1 deletions
1
class.c
1
class.c
|
@ -406,7 +406,6 @@ rb_module_check_initializable(VALUE mod)
|
|||
if (!RMODULE_UNINITIALIZED(mod)) {
|
||||
rb_raise(rb_eTypeError, "already initialized module");
|
||||
}
|
||||
RB_OBJ_WRITE(mod, &RCLASS(mod)->super, 0);
|
||||
}
|
||||
|
||||
/* :nodoc: */
|
||||
|
|
Loading…
Add table
Reference in a new issue