diff options
author | Alan Wu <[email protected]> | 2022-06-16 07:20:20 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2022-06-16 07:20:20 -0400 |
commit | 714a4942fdb1e71ce38032a9f4bab10855a4bea8 (patch) | |
tree | d528fb63498e07ce2d6cfff5221af3c9ea7a42f5 /string.c | |
parent | 63546bfc1581d4abec2a0d846106a1c0afc0efa9 (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.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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) { |