aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-06-25 16:28:40 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-06-25 16:28:40 -0300
commit93d50edc80abfdf9ad8064af9631a60c56bb0868 (patch)
treedf850975868e41bb7056ee0c2660cd2500c01566 /tools/perf/util
parentperf ui stdio: No need to use 'spaces' to left align (diff)
downloadlinux-dev-93d50edc80abfdf9ad8064af9631a60c56bb0868.tar.xz
linux-dev-93d50edc80abfdf9ad8064af9631a60c56bb0868.zip
perf ctype: Remove now unused 'spaces' variable
We can left justify just fine using the 'field width' modifier in %s printf, ditch this variable. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-2td8u86mia7143lbr5ttl0kf@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/ctype.c4
-rw-r--r--tools/perf/util/sane_ctype.h1
2 files changed, 0 insertions, 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 */