diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-06-26 17:06:20 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-06-26 17:06:20 +0200 |
commit | 3ca43b6053c9a5dbbffb02aa010c1ccf8eb460a8 (patch) | |
tree | 8482ebea1f88e0e0cb67c00c3dc43f6b0f3acc34 /tools/perf/util/string2.h | |
parent | tools lib: Adopt strim() from the kernel (diff) | |
download | linux-3ca43b6053c9a5dbbffb02aa010c1ccf8eb460a8.tar.xz linux-3ca43b6053c9a5dbbffb02aa010c1ccf8eb460a8.zip |
perf tools: Remove trim() implementation, use tools/lib's strim()
Moving more stuff out of tools/perf/util/ and using the kernel idiom.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-wpj8rktj62yse5dq6ckny6de@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | tools/perf/util/string2.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/perf/util/string2.h b/tools/perf/util/string2.h index db02059e31c5..5bc3fea52cdc 100644 --- a/tools/perf/util/string2.h +++ b/tools/perf/util/string2.h @@ -25,11 +25,6 @@ char *strxfrchar(char *s, char from, char to); char *rtrim(char *s); -static inline char *trim(char *s) -{ - return skip_spaces(rtrim(s)); -} - char *asprintf_expr_inout_ints(const char *var, bool in, size_t nints, int *ints); static inline char *asprintf_expr_in_ints(const char *var, size_t nints, int *ints) |