summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-29 22:34:19 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-29 22:34:19 +0000
commitf7f097a3698aa3dec585488015e9652466f29455 (patch)
treed8d5aadf89a207767a6cf64f5f5e4a87d936ac55 /class.c
parent6dcfcfd4a1893c1b7201b8e3bd1038de792c352a (diff)
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
Diffstat (limited to 'class.c')
-rw-r--r--class.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/class.c b/class.c
index d73724b..f0b6ba0 100644
--- a/class.c
+++ b/class.c
@@ -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)
{