Remove check for RCLASS_EXT in variable.c

A class/module should always have a RCLASS_EXT, so we shouldn't need to
check that it exists.
This commit is contained in:
Peter Zhu 2023-01-10 16:08:00 -05:00
parent 327cf5ec40
commit ac8cf010bc
Notes: git 2023-01-11 14:16:54 +00:00

View File

@ -112,7 +112,6 @@ static VALUE
classname(VALUE klass, int *permanent)
{
*permanent = 0;
if (!RCLASS_EXT(klass)) return Qnil;
VALUE classpathv = rb_ivar_lookup(klass, classpath, Qnil);
if (RTEST(classpathv)) {