Skip to content

Commit 714a494

Browse files
authored
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]: 56cc3e9
1 parent 63546bf commit 714a494

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

include/ruby/internal/core/rstring.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,6 @@ RSTRING_LENINT(VALUE str)
556556
return rb_long2int(RSTRING_LEN(str));
557557
}
558558

559-
bool
560-
rb_str_shared_root_p(VALUE str);
561-
562559
/**
563560
* Convenient macro to obtain the contents and length at once.
564561
*

string.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,6 @@ rb_str_embed_size(long capa)
233233
return offsetof(struct RString, as.embed.ary) + capa;
234234
}
235235

236-
bool
237-
rb_str_shared_root_p(VALUE str)
238-
{
239-
return FL_TEST_RAW(str, STR_SHARED_ROOT);
240-
}
241-
242236
size_t
243237
rb_str_size_as_embedded(VALUE str)
244238
{

0 commit comments

Comments
 (0)