mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Drop some unused methods
This commit is contained in:
parent
200bda3daf
commit
7aacf9a197
2 changed files with 5 additions and 49 deletions
|
@ -216,8 +216,10 @@ impl Module {
|
|||
}
|
||||
}?;
|
||||
|
||||
let child_name = src.value.name()?;
|
||||
parent_module.child(db, &child_name.as_name())
|
||||
let child_name = src.value.name()?.as_name();
|
||||
let def_map = db.crate_def_map(parent_module.id.krate);
|
||||
let child_id = def_map[parent_module.id.local_id].children.get(&child_name)?;
|
||||
Some(parent_module.with_module_id(*child_id))
|
||||
}
|
||||
|
||||
pub fn from_definition(db: &impl DefDatabase, src: InFile<ModuleSource>) -> Option<Self> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue