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
This commit is contained in:
parent
63546bfc15
commit
714a4942fd
Notes:
git
2022-06-16 20:20:39 +09:00
Merged: https://github.com/ruby/ruby/pull/6023 Merged-By: XrXr
@ -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.
|
||||||
*
|
*
|
||||||
|
6
string.c
6
string.c
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user