summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-01-10 16:08:00 -0500
committerPeter Zhu <peter@peterzhu.ca>2023-01-11 09:16:34 -0500
commitac8cf010bc2cad78f4e2cf182c475effdb12b181 (patch)
treeb4af2953d3a07e836c081c014d01ce1d392a13d9 /variable.c
parent327cf5ec402eee6840bdd550276f7a04301e1780 (diff)
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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7095
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index 0fd4a80887..0e6f449f91 100644
--- a/variable.c
+++ b/variable.c
@@ -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)) {