mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
6dcfcfd4a1
commit
f7f097a369
2 changed files with 0 additions and 11 deletions
10
class.c
10
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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue