summaryrefslogtreecommitdiff
path: root/include/ruby
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 /include/ruby
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 'include/ruby')
-rw-r--r--include/ruby/internal/core/rstring.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/ruby/internal/core/rstring.h b/include/ruby/internal/core/rstring.h
index 7b4953ab8c..e394ab7dca 100644
--- a/include/ruby/internal/core/rstring.h
+++ b/include/ruby/internal/core/rstring.h
@@ -556,9 +556,6 @@ RSTRING_LENINT(VALUE 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.
*