perf ctype: Remove now unused 'spaces' variable
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 25 Jun 2019 19:28:40 +0000 (16:28 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 25 Jun 2019 19:28:40 +0000 (16:28 -0300)
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>
tools/perf/util/ctype.c
tools/perf/util/sane_ctype.h

index 8d90bf8d0d707b2e38c5bd1f0be53c2224a19bd5..75c0da59c230c1bb68798eedaf853a905dfb5866 100644 (file)
@@ -35,10 +35,6 @@ const char *graph_dotted_line =
        "---------------------------------------------------------------------"
        "---------------------------------------------------------------------"
        "---------------------------------------------------------------------";
-const char *spaces =
-       "                                                                     "
-       "                                                                     "
-       "                                                                     ";
 const char *dots =
        "....................................................................."
        "....................................................................."
index 894594fdedfb0dd78134e3d1636d4c8ed1be0738..a2bb3890864f04590a91c7a7742cb60de7c5d330 100644 (file)
@@ -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 */