]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
perf tools: Remove check for unused PERF_PAGER_IN_USE
authorJosh Poimboeuf <jpoimboe@redhat.com>
Mon, 14 Dec 2015 04:18:08 +0000 (22:18 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 14 Dec 2015 15:30:18 +0000 (12:30 -0300)
PERF_PAGER_IN_USE doesn't seem to be used anywhere, so let's remove it.

This will also make it easier to move pager.c into a separate library.

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/ed9e8370db9811746dc590544cf48c36dcfb1731.1449965119.git.jpoimboe@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/pager.c

index 53ef006a951c3f3c90ce8c62e9a5cd73b7750a74..7dcbef64b6092b7c3dc38daefbeba01e71f237d7 100644 (file)
@@ -85,11 +85,5 @@ void setup_pager(void)
 
 int pager_in_use(void)
 {
-       const char *env;
-
-       if (spawned_pager)
-               return 1;
-
-       env = getenv("PERF_PAGER_IN_USE");
-       return env ? perf_config_bool("PERF_PAGER_IN_USE", env) : 0;
+       return spawned_pager;
 }