summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-05-26 16:30:20 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2022-05-26 16:30:57 -0400
commitfa7a74fcc8b3fdedb075cf2d04e70a20b326a632 (patch)
treeb23a1d35d0a4ee785aa6e386dce5e7254ca6f1dd
parent62839683e80c023761205d6cbefc4518b1ecec1d (diff)
Delete some dead code
printf_pad() has been superseded by printbuf tabstops. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r--tools-util.c19
-rw-r--r--tools-util.h2
2 files changed, 0 insertions, 21 deletions
diff --git a/tools-util.c b/tools-util.c
index 591e2a0c..baf24ae5 100644
--- a/tools-util.c
+++ b/tools-util.c
@@ -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)
diff --git a/tools-util.h b/tools-util.h
index 136d7d65..8ed00b15 100644
--- a/tools-util.h
+++ b/tools-util.h
@@ -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 *);