diff options
| author | Satoshi Tagomori <s-tagomori@sakura.ad.jp> | 2025-10-14 21:30:30 +0900 |
|---|---|---|
| committer | Satoshi Tagomori <tagomoris@gmail.com> | 2025-10-14 22:59:14 +0900 |
| commit | 7e07a8d8f662edcf112094750f6e2abed8b84803 (patch) | |
| tree | bff1e1590122341f265c2ca7118efb7534210973 | |
| parent | 25a420351df113e02536e0ec98cf1671e437c772 (diff) | |
Remove a debug method that is useless now
| -rw-r--r-- | namespace.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/namespace.c b/namespace.c index 6a8f4abc9d..bf4f87f1de 100644 --- a/namespace.c +++ b/namespace.c @@ -351,20 +351,6 @@ rb_namespace_s_current(VALUE recv) /* * call-seq: - * Namespace.is_builtin?(klass) -> true or false - * - * Returns +true+ if +klass+ is only in a user namespace. - */ -static VALUE -rb_namespace_s_is_builtin_p(VALUE recv, VALUE klass) -{ - if (RCLASS_PRIME_CLASSEXT_READABLE_P(klass) && !RCLASS_PRIME_CLASSEXT_WRITABLE_P(klass)) - return Qtrue; - return Qfalse; -} - -/* - * call-seq: * load_path -> array * * Returns namespace local load path. @@ -1056,7 +1042,6 @@ Init_Namespace(void) rb_define_singleton_method(rb_cNamespace, "enabled?", rb_namespace_s_getenabled, 0); rb_define_singleton_method(rb_cNamespace, "current", rb_namespace_s_current, 0); - rb_define_singleton_method(rb_cNamespace, "is_builtin?", rb_namespace_s_is_builtin_p, 1); rb_define_method(rb_cNamespace, "load_path", rb_namespace_load_path, 0); rb_define_method(rb_cNamespace, "load", rb_namespace_load, -1); |
