mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Remove mrb_str_buf_new() and MRB_STR_BUF_MIN_SIZE; close #5171
This commit is contained in:
@@ -175,19 +175,6 @@ mrb_str_new_capa(mrb_state *mrb, size_t capa)
|
||||
return mrb_obj_value(s);
|
||||
}
|
||||
|
||||
#ifndef MRB_STR_BUF_MIN_SIZE
|
||||
# define MRB_STR_BUF_MIN_SIZE 128
|
||||
#endif
|
||||
|
||||
MRB_API mrb_value
|
||||
mrb_str_buf_new(mrb_state *mrb, size_t capa)
|
||||
{
|
||||
if (capa < MRB_STR_BUF_MIN_SIZE) {
|
||||
capa = MRB_STR_BUF_MIN_SIZE;
|
||||
}
|
||||
return mrb_str_new_capa(mrb, capa);
|
||||
}
|
||||
|
||||
static void
|
||||
resize_capa(mrb_state *mrb, struct RString *s, size_t capacity)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user