perf tools: Remove some unused functions
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 814b3f5127248db90e5d9983668a44eec7b45c02 Gitweb: http://git.kernel.org/tip/814b3f5127248db90e5d9983668a44eec7b45c02 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Thu, 16 Jun 2016 17:10:46 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 21 Jun 2016 13:18:33 -0300
perf tools: Remove some unused functions
Probably are there since the beginning, taken from git but never used.
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/util/cache.h | 4 --- tools/perf/util/config.c | 2 +- tools/perf/util/path.c | 65 +----------------------------------------------- 3 files changed, 2 insertions(+), 69 deletions(-)
tools/perf/util/cache.h +0 -4
@@ -32,7 +32,6 @@ int perf_config_int(const char *, const char *);u64 perf_config_u64 (const char *,const char *);int perf_config_bool (const char *,const char *);int config_error_nonbool (const char *); -const char *perf_config_dirname (const char *,const char *);const char *perf_etc_perfconfig (void );char *alias_lookup (const char *alias);
@@ -45,9 +44,6 @@ static inline int is_absolute_path(const char *path) return path[0] == '/'; } -char *strip_path_suffix (const char *path,const char *suffix); -char *mkpath (const char *fmt, ...) __attribute__((format (printf,1 ,2 ))); -char *perf_path (const char *fmt, ...) __attribute__((format (printf,1 ,2 )));#endif /* __PERF_CACHE_H */
tools/perf/util/config.c +1 -1
@@ -372,7 +372,7 @@ int perf_config_bool(const char *name, const char *value)return !!perf_config_bool_or_int (name, value, &discard); } -const char *perf_config_dirname (const char *name,const char *value) +static const char *perf_config_dirname (const char *name,const char *value) {if (!name)return NULL ;
tools/perf/util/path.c +1 -64
75 lines not on this page · raw message