[tip: perf/core] perf dsos: Remove unused dsos__find() method
From: tip-bot2 for Arnaldo Carvalho de Melo
Date: Sat Nov 23 2019 - 03:15:46 EST
The following commit has been merged into the perf/core branch of tip:
Commit-ID: 1f74b100c9d9406fa12b22675c6b2111e5f60e9c
Gitweb: https://git.kernel.org/tip/1f74b100c9d9406fa12b22675c6b2111e5f60e9c
Author: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
AuthorDate: Tue, 19 Nov 2019 17:51:34 -03:00
Committer: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
CommitterDate: Tue, 19 Nov 2019 17:51:34 -03:00
perf dsos: Remove unused dsos__find() method
Not used anywhere, nuke it.
Cc: Adrian Hunter <adrian.hunter@xxxxxxxxx>
Cc: Andi Kleen <ak@xxxxxxxxxxxxxxx>
Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
Link: https://lkml.kernel.org/n/tip-teqz0eqcw43mnt7i3me44esw@xxxxxxxxxxxxxx
Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
---
tools/perf/util/dsos.c | 9 ---------
tools/perf/util/dsos.h | 1 -
2 files changed, 10 deletions(-)
diff --git a/tools/perf/util/dsos.c b/tools/perf/util/dsos.c
index ecf8d73..1d38d6a 100644
--- a/tools/perf/util/dsos.c
+++ b/tools/perf/util/dsos.c
@@ -159,15 +159,6 @@ struct dso *__dsos__find(struct dsos *dsos, const char *name, bool cmp_short)
return __dsos__findnew_by_longname(&dsos->root, name);
}
-struct dso *dsos__find(struct dsos *dsos, const char *name, bool cmp_short)
-{
- struct dso *dso;
- down_read(&dsos->lock);
- dso = __dsos__find(dsos, name, cmp_short);
- up_read(&dsos->lock);
- return dso;
-}
-
static void dso__set_basename(struct dso *dso)
{
char *base, *lname;
diff --git a/tools/perf/util/dsos.h b/tools/perf/util/dsos.h
index 32f1fbe..fd7ba51 100644
--- a/tools/perf/util/dsos.h
+++ b/tools/perf/util/dsos.h
@@ -24,7 +24,6 @@ void __dsos__add(struct dsos *dsos, struct dso *dso);
void dsos__add(struct dsos *dsos, struct dso *dso);
struct dso *__dsos__addnew(struct dsos *dsos, const char *name);
struct dso *__dsos__find(struct dsos *dsos, const char *name, bool cmp_short);
-struct dso *dsos__find(struct dsos *dsos, const char *name, bool cmp_short);
struct dso *__dsos__findnew(struct dsos *dsos, const char *name);
struct dso *dsos__findnew(struct dsos *dsos, const char *name);