From 8fc08d36e33ad95d70d262cef7d2e694f7f8f502 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 2 Mar 2019 16:59:18 +0300 Subject: remove second way to get the body --- crates/ra_hir/src/expr.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'crates/ra_hir/src') diff --git a/crates/ra_hir/src/expr.rs b/crates/ra_hir/src/expr.rs index 6043f4028..d6c551fb2 100644 --- a/crates/ra_hir/src/expr.rs +++ b/crates/ra_hir/src/expr.rs @@ -77,10 +77,6 @@ impl Body { pub fn pats(&self) -> impl Iterator { self.pats.iter() } - - pub fn source_map(&self, db: &impl HirDatabase) -> Arc { - db.body_with_source_map(self.owner).1 - } } // needs arbitrary_self_types to be a method... or maybe move to the def? -- cgit v1.2.3