diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-29 22:34:19 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-29 22:34:19 +0000 |
commit | 5046f18790c08487f50b8981f2f8ad3c4c3a5d82 (patch) | |
tree | d8d5aadf89a207767a6cf64f5f5e4a87d936ac55 | |
parent | a8fbb868deee1d0cd6d175d8c6d577a4ef8b02f9 (diff) | |
download | ruby-5046f18790c08487f50b8981f2f8ad3c4c3a5d82.tar.gz |
remove unused rb_obj_basic_to_s_p function
This hasn't been used since r36709 (2012-08-15)
("Kernel#inspect: improve consistency and do not call #to_s.")
and was never part of public API in include/ruby/
* class.c (rb_obj_basic_to_s_p): remove function
* internal.h (rb_obj_basic_to_s_p): remove declaration
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | class.c | 10 | ||||
-rw-r--r-- | internal.h | 1 |
2 files changed, 0 insertions, 11 deletions
@@ -1773,16 +1773,6 @@ rb_define_attr(VALUE klass, const char *name, int read, int write) rb_attr(klass, rb_intern(name), read, write, FALSE); } -int -rb_obj_basic_to_s_p(VALUE obj) -{ - const rb_method_entry_t *me = rb_method_entry(CLASS_OF(obj), rb_intern("to_s")); - if (me && me->def && me->def->type == VM_METHOD_TYPE_CFUNC && - me->def->body.cfunc.func == rb_any_to_s) - return 1; - return 0; -} - VALUE rb_keyword_error_new(const char *error, VALUE keys) { diff --git a/internal.h b/internal.h index a474830a2e..81f4d2b91d 100644 --- a/internal.h +++ b/internal.h @@ -1055,7 +1055,6 @@ VALUE rb_obj_methods(int argc, const VALUE *argv, VALUE obj); VALUE rb_obj_protected_methods(int argc, const VALUE *argv, VALUE obj); VALUE rb_obj_private_methods(int argc, const VALUE *argv, VALUE obj); VALUE rb_obj_public_methods(int argc, const VALUE *argv, VALUE obj); -int rb_obj_basic_to_s_p(VALUE); VALUE rb_special_singleton_class(VALUE); VALUE rb_singleton_class_clone_and_attach(VALUE obj, VALUE attach); VALUE rb_singleton_class_get(VALUE obj); |