summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/pager.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-06-27 06:06:39 +0200
committerIngo Molnar <mingo@elte.hu>2009-06-27 06:06:39 +0200
commitfde953c1c67986e1c381fa50d8207b1578b5cefa (patch)
treea9c50baf068bf269784efc783f006bfac4fe4630 /tools/perf/util/pager.c
parent19d2e755436054dfc2be640bffc32e427c37ac3d (diff)
downloadblackbird-op-linux-fde953c1c67986e1c381fa50d8207b1578b5cefa.tar.gz
blackbird-op-linux-fde953c1c67986e1c381fa50d8207b1578b5cefa.zip
perf_counter tools: Remove dead code
Vince Weaver reported that there's a handful of #ifdef __MINGW32__ sections in the code. Remove them as they are in essence dead code - as unlike upstream Git, the perf tool is unlikely to be ported to Windows. Reported-by: Vince Weaver <vince@deater.net> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/pager.c')
-rw-r--r--tools/perf/util/pager.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/perf/util/pager.c b/tools/perf/util/pager.c
index a28bccae5458..1915de20dcac 100644
--- a/tools/perf/util/pager.c
+++ b/tools/perf/util/pager.c
@@ -9,7 +9,6 @@
static int spawned_pager;
-#ifndef __MINGW32__
static void pager_preexec(void)
{
/*
@@ -24,7 +23,6 @@ static void pager_preexec(void)
setenv("LESS", "FRSX", 0);
}
-#endif
static const char *pager_argv[] = { "sh", "-c", NULL, NULL };
static struct child_process pager_process;
@@ -70,9 +68,8 @@ void setup_pager(void)
pager_argv[2] = pager;
pager_process.argv = pager_argv;
pager_process.in = -1;
-#ifndef __MINGW32__
pager_process.preexec_cb = pager_preexec;
-#endif
+
if (start_command(&pager_process))
return;
OpenPOWER on IntegriCloud