fx.term: remove redundant printf implementation
This commit is contained in:
+3
-7
@@ -102,8 +102,8 @@ static print_function format_printers[] = {
|
||||
[FX_PRINT_WARN] = print_warn,
|
||||
[FX_PRINT_ERR] = print_err,
|
||||
};
|
||||
static size_t nr_format_printers
|
||||
= sizeof format_printers / sizeof format_printers[FX_PRINT_NORMAL];
|
||||
static size_t nr_format_printers = sizeof format_printers
|
||||
/ sizeof format_printers[FX_PRINT_NORMAL];
|
||||
|
||||
fx_status fx_print(fx_print_format format, const char *str, ...)
|
||||
{
|
||||
@@ -140,11 +140,7 @@ int fx_printf(const char *format, ...)
|
||||
{
|
||||
va_list arg;
|
||||
va_start(arg, format);
|
||||
int x = fx_tty_vprintf(
|
||||
fx_stdtty,
|
||||
FX_TTY_DISABLE_INTERPOLATED_FORMATTING,
|
||||
format,
|
||||
arg);
|
||||
int x = fx_tty_vprintf(fx_stdtty, 0, format, arg);
|
||||
va_end(arg);
|
||||
return x;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user