Delete some dead code

printf_pad() has been superseded by printbuf tabstops.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
Kent Overstreet 2022-05-26 16:30:20 -04:00
parent 62839683e8
commit fa7a74fcc8
2 changed files with 0 additions and 21 deletions

View File

@ -126,25 +126,6 @@ struct stat xstat(const char *path)
return statbuf;
}
/* Formatting: */
int printf_pad(unsigned pad, const char * fmt, ...)
{
va_list args;
int ret;
va_start(args, fmt);
ret = vprintf(fmt, args);
va_end(args);
while (ret++ < pad)
putchar(' ');
return ret;
}
/* Argument parsing stuff: */
/* File parsing (i.e. sysfs) */
char *read_file_str(int dirfd, const char *path)

View File

@ -53,8 +53,6 @@ struct stat xstat(const char *);
_ret; \
})
int printf_pad(unsigned pad, const char * fmt, ...);
char *read_file_str(int, const char *);
u64 read_file_u64(int, const char *);