aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-03-02 13:59:18 +0000
committerAleksey Kladov <[email protected]>2019-03-02 13:59:18 +0000
commit8fc08d36e33ad95d70d262cef7d2e694f7f8f502 (patch)
treeac8a3c42e334f1c9b5207de9b0c6ba55c8838c83 /crates/ra_hir/src
parent03b2ab8e1f11f0e05234da9162ef57f7a30a64af (diff)
remove second way to get the body
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r--crates/ra_hir/src/expr.rs4
1 files changed, 0 insertions, 4 deletions
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 {
77 pub fn pats(&self) -> impl Iterator<Item = (PatId, &Pat)> { 77 pub fn pats(&self) -> impl Iterator<Item = (PatId, &Pat)> {
78 self.pats.iter() 78 self.pats.iter()
79 } 79 }
80
81 pub fn source_map(&self, db: &impl HirDatabase) -> Arc<BodySourceMap> {
82 db.body_with_source_map(self.owner).1
83 }
84} 80}
85 81
86// needs arbitrary_self_types to be a method... or maybe move to the def? 82// needs arbitrary_self_types to be a method... or maybe move to the def?