mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 00:24:12 +08:00
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>
This commit is contained in:
parent
7b59a82493
commit
1f74b100c9
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user