diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-17 15:39:06 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-19 13:01:48 -0300 |
commit | 28a9bb9621d9f8b4328048297cd306e09fbbf175 (patch) | |
tree | 6da0ab344b5cdb036ef0a47530c1c4b54538bba2 /tools/perf/perf.c | |
parent | aa8cc2f6b5faae3511ea229846d8e54bd8df40d1 (diff) | |
download | op-kernel-dev-28a9bb9621d9f8b4328048297cd306e09fbbf175.zip op-kernel-dev-28a9bb9621d9f8b4328048297cd306e09fbbf175.tar.gz |
perf tools: Ditch unused PATH_SEP, STRIP_EXTENSION
Should make sense for windows, where git is supported.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-lzxlhmqrizk72d0zcsreggy8@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/perf.c')
-rw-r--r-- | tools/perf/perf.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/perf/perf.c b/tools/perf/perf.c index 07ee135..94e9418 100644 --- a/tools/perf/perf.c +++ b/tools/perf/perf.c @@ -328,16 +328,6 @@ static void handle_internal_command(int argc, const char **argv) { const char *cmd = argv[0]; unsigned int i; - static const char ext[] = STRIP_EXTENSION; - - if (sizeof(ext) > 1) { - i = strlen(argv[0]) - strlen(ext); - if (i > 0 && !strcmp(argv[0] + i, ext)) { - char *argv0 = strdup(argv[0]); - argv[0] = cmd = argv0; - argv0[i] = '\0'; - } - } /* Turn "perf cmd --help" into "perf help cmd" */ if (argc > 1 && !strcmp(argv[1], "--help")) { |