remove second way to get the body

This commit is contained in:
Aleksey Kladov 2019-03-02 16:59:18 +03:00
parent 03b2ab8e1f
commit 8fc08d36e3
2 changed files with 1 additions and 5 deletions

View file

@ -77,10 +77,6 @@ impl Body {
pub fn pats(&self) -> impl Iterator<Item = (PatId, &Pat)> {
self.pats.iter()
}
pub fn source_map(&self, db: &impl HirDatabase) -> Arc<BodySourceMap> {
db.body_with_source_map(self.owner).1
}
}
// needs arbitrary_self_types to be a method... or maybe move to the def?