remove mrb_str_buf_cat

It does the same as `mrb_str_cat`.
This commit is contained in:
cremno
2014-04-21 21:24:00 +02:00
parent db6e868265
commit bc23a5e9e5
4 changed files with 14 additions and 17 deletions
+2 -2
View File
@@ -955,7 +955,7 @@ join_ary(mrb_state *mrb, mrb_value ary, mrb_value sep, mrb_value list)
for (i=0; i<RARRAY_LEN(ary); i++) {
if (i > 0 && !mrb_nil_p(sep)) {
mrb_str_buf_cat(mrb, result, RSTRING_PTR(sep), RSTRING_LEN(sep));
mrb_str_buf_append(mrb, result, sep);
}
val = RARRAY_PTR(ary)[i];
@@ -967,7 +967,7 @@ join_ary(mrb_state *mrb, mrb_value ary, mrb_value sep, mrb_value list)
case MRB_TT_STRING:
str_join:
mrb_str_buf_cat(mrb, result, RSTRING_PTR(val), RSTRING_LEN(val));
mrb_str_buf_append(mrb, result, val);
break;
default: