Commit-ID:  a871a775172ac586b76199fd158e2843971bd052
Gitweb:     http://git.kernel.org/tip/a871a775172ac586b76199fd158e2843971bd052
Author:     Josh Poimboeuf <jpoim...@redhat.com>
AuthorDate: Sun, 13 Dec 2015 22:18:08 -0600
Committer:  Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate: Mon, 14 Dec 2015 12:30:18 -0300

perf tools: Remove check for unused PERF_PAGER_IN_USE

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 <jpoim...@redhat.com>
Cc: Jiri Olsa <jo...@redhat.com>
Cc: Namhyung Kim <namhy...@kernel.org>
Cc: Peter Zijlstra <pet...@infradead.org>
Link: 
http://lkml.kernel.org/r/ed9e8370db9811746dc590544cf48c36dcfb1731.1449965119.git.jpoim...@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <a...@redhat.com>
---
 tools/perf/util/pager.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/tools/perf/util/pager.c b/tools/perf/util/pager.c
index 53ef006..7dcbef6 100644
--- a/tools/perf/util/pager.c
+++ b/tools/perf/util/pager.c
@@ -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;
 }
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to