diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-11-19 21:51:34 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-11-19 21:51:34 +0100 |
commit | 1f74b100c9d9406fa12b22675c6b2111e5f60e9c (patch) | |
tree | dc09dbdbd19cb335491c9cfd986d645842251581 /tools/perf/util/dsos.c | |
parent | perf map: Move comparision of map's dso_id to a separate function (diff) | |
download | linux-1f74b100c9d9406fa12b22675c6b2111e5f60e9c.tar.xz linux-1f74b100c9d9406fa12b22675c6b2111e5f60e9c.zip |
perf dsos: Remove unused dsos__find() method
Not used anywhere, nuke it.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-teqz0eqcw43mnt7i3me44esw@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/dsos.c')
-rw-r--r-- | tools/perf/util/dsos.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/perf/util/dsos.c b/tools/perf/util/dsos.c index ecf8d7346685..1d38d6ac6e5a 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; |