From 5c7fe225a6d675f3e213f8792f116035a35c63a4 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 22 May 2021 14:16:55 +0900 Subject: fp_fmt.c: remove `mrb_float_to_cstr()`. The function was intended to be a utility function for `mruby-sprintf`. The functionality was integrated into `sprintf.c`. --- include/mruby/numeric.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include') diff --git a/include/mruby/numeric.h b/include/mruby/numeric.h index 8f8635189..4e3e8976a 100644 --- a/include/mruby/numeric.h +++ b/include/mruby/numeric.h @@ -171,8 +171,6 @@ int mrb_format_float(mrb_float f, char *buf, size_t buf_size, char fmt, int prec /* obsolete functions; will be removed */ #define mrb_flo_to_fixnum(mrb, val) mrb_float_to_integer(mrb, val) #define mrb_to_flo(mrb, x) mrb_as_float(mrb, x) -/* ArgumentError if format string doesn't match /%(\.[0-9]+)?[aAeEfFgG]/ */ -int mrb_float_to_cstr(mrb_state *mrb, char *buf, size_t len, const char *fmt, mrb_float f); #endif /* MRB_NO_FLOAT */ -- cgit v1.2.3