From 39a11f323e26879d1101e31859ddb20068f12d56 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sun, 22 Nov 2020 22:54:21 +0900 Subject: Remove `mrb_str_buf_new()` and `MRB_STR_BUF_MIN_SIZE`; close #5171 --- src/string.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/string.c') diff --git a/src/string.c b/src/string.c index d8e06a1d3..cf71914b3 100644 --- a/src/string.c +++ b/src/string.c @@ -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) { -- cgit v1.2.3