Remove unused and accidentally public rb_str_shared_root_p()

This function was added to a public header in [1] probably
unintentionally since it's not used anywhere, exposes implementation
details, and isn't related to the goals of that pull request.

[1]: 56cc3e99b6
This commit is contained in:
Alan Wu 2022-06-16 07:20:20 -04:00 committed by GitHub
parent 63546bfc15
commit 714a4942fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2022-06-16 20:20:39 +09:00
Merged: https://github.com/ruby/ruby/pull/6023

Merged-By: XrXr
2 changed files with 0 additions and 9 deletions

View File

@ -556,9 +556,6 @@ RSTRING_LENINT(VALUE str)
return rb_long2int(RSTRING_LEN(str)); return rb_long2int(RSTRING_LEN(str));
} }
bool
rb_str_shared_root_p(VALUE str);
/** /**
* Convenient macro to obtain the contents and length at once. * Convenient macro to obtain the contents and length at once.
* *

View File

@ -233,12 +233,6 @@ rb_str_embed_size(long capa)
return offsetof(struct RString, as.embed.ary) + capa; return offsetof(struct RString, as.embed.ary) + capa;
} }
bool
rb_str_shared_root_p(VALUE str)
{
return FL_TEST_RAW(str, STR_SHARED_ROOT);
}
size_t size_t
rb_str_size_as_embedded(VALUE str) rb_str_size_as_embedded(VALUE str)
{ {