Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf tools: Remove unused pager_use_color variable

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/e540c61b3068761181db6d9b1b3411990bafdb2f.1449548395.git.jpoimboe@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Josh Poimboeuf and committed by
Arnaldo Carvalho de Melo
de7cf7ca 5191d887

+1 -11
-1
tools/perf/util/Build
··· 6 6 libperf-y += ctype.o 7 7 libperf-y += db-export.o 8 8 libperf-y += env.o 9 - libperf-y += environment.o 10 9 libperf-y += event.o 11 10 libperf-y += evlist.o 12 11 libperf-y += evsel.o
-1
tools/perf/util/cache.h
··· 31 31 /* pager.c */ 32 32 extern void setup_pager(void); 33 33 extern int pager_in_use(void); 34 - extern int pager_use_color; 35 34 36 35 char *alias_lookup(const char *alias); 37 36 int split_cmdline(char *cmdline, const char ***argv);
+1 -1
tools/perf/util/color.c
··· 24 24 auto_color: 25 25 if (stdout_is_tty < 0) 26 26 stdout_is_tty = isatty(1); 27 - if (stdout_is_tty || (pager_in_use() && pager_use_color)) { 27 + if (stdout_is_tty || pager_in_use()) { 28 28 char *term = getenv("TERM"); 29 29 if (term && strcmp(term, "dumb")) 30 30 return 1;
-8
tools/perf/util/environment.c
··· 1 - /* 2 - * We put all the perf config variables in this same object 3 - * file, so that programs can link against the config parser 4 - * without having to link against all the rest of perf. 5 - */ 6 - #include "cache.h" 7 - 8 - int pager_use_color = 1;