summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2022-06-16 07:20:20 -0400
committerGitHub <noreply@github.com>2022-06-16 07:20:20 -0400
commit714a4942fdb1e71ce38032a9f4bab10855a4bea8 (patch)
treed528fb63498e07ce2d6cfff5221af3c9ea7a42f5 /string.c
parent63546bfc1581d4abec2a0d846106a1c0afc0efa9 (diff)
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]: 56cc3e99b6b9ec004255280337f6b8353f5e5b06
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6023 Merged-By: XrXr
Diffstat (limited to 'string.c')
-rw-r--r--string.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/string.c b/string.c
index 68baa91cc0..e06e7745a6 100644
--- a/string.c
+++ b/string.c
@@ -233,12 +233,6 @@ rb_str_embed_size(long 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
rb_str_size_as_embedded(VALUE str)
{