[PATCH 14/43] perf ctype: Remove now unused 'spaces' variable
From: Arnaldo Carvalho de Melo
Date: Mon Jul 01 2019 - 22:27:14 EST
From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
We can left justify just fine using the 'field width' modifier in %s
printf, ditch this variable.
Cc: Adrian Hunter <adrian.hunter@xxxxxxxxx>
Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
Link: https://lkml.kernel.org/n/tip-2td8u86mia7143lbr5ttl0kf@xxxxxxxxxxxxxx
Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
---
tools/perf/util/ctype.c | 4 ----
tools/perf/util/sane_ctype.h | 1 -
2 files changed, 5 deletions(-)
diff --git a/tools/perf/util/ctype.c b/tools/perf/util/ctype.c
index 8d90bf8d0d70..75c0da59c230 100644
--- a/tools/perf/util/ctype.c
+++ b/tools/perf/util/ctype.c
@@ -35,10 +35,6 @@ const char *graph_dotted_line =
"---------------------------------------------------------------------"
"---------------------------------------------------------------------"
"---------------------------------------------------------------------";
-const char *spaces =
- " "
- " "
- " ";
const char *dots =
"....................................................................."
"....................................................................."
diff --git a/tools/perf/util/sane_ctype.h b/tools/perf/util/sane_ctype.h
index 894594fdedfb..a2bb3890864f 100644
--- a/tools/perf/util/sane_ctype.h
+++ b/tools/perf/util/sane_ctype.h
@@ -3,7 +3,6 @@
#define _PERF_SANE_CTYPE_H
extern const char *graph_dotted_line;
-extern const char *spaces;
extern const char *dots;
/* Sane ctype - no locale, and works with signed chars */
--
2.20.1