aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_hir/src/code_model.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs
index 0100ac91c..906716dfc 100644
--- a/crates/ra_hir/src/code_model.rs
+++ b/crates/ra_hir/src/code_model.rs
@@ -7,7 +7,6 @@ use std::sync::Arc;
7use either::Either; 7use either::Either;
8use hir_def::{ 8use hir_def::{
9 adt::VariantData, 9 adt::VariantData,
10 body::{Body, BodySourceMap},
11 builtin_type::BuiltinType, 10 builtin_type::BuiltinType,
12 docs::Documentation, 11 docs::Documentation,
13 expr::{BindingAnnotation, Pat, PatId}, 12 expr::{BindingAnnotation, Pat, PatId},
@@ -511,14 +510,6 @@ impl Function {
511 db.function_data(self.id).params.clone() 510 db.function_data(self.id).params.clone()
512 } 511 }
513 512
514 pub fn body_source_map(self, db: &impl HirDatabase) -> Arc<BodySourceMap> {
515 db.body_with_source_map(self.id.into()).1
516 }
517
518 pub fn body(self, db: &impl HirDatabase) -> Arc<Body> {
519 db.body(self.id.into())
520 }
521
522 /// The containing impl block, if this is a method. 513 /// The containing impl block, if this is a method.
523 pub fn impl_block(self, db: &impl DefDatabase) -> Option<ImplBlock> { 514 pub fn impl_block(self, db: &impl DefDatabase) -> Option<ImplBlock> {
524 match self.container(db) { 515 match self.container(db) {