diff options
author | Aleksey Kladov <[email protected]> | 2019-12-08 11:27:21 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-12-08 11:27:21 +0000 |
commit | b77d7c24aa929e53a2bc2a0ffa319de9bf1ab1fa (patch) | |
tree | 309c2dec50392af191bd9a79e7ac30b60094ed5a /crates | |
parent | b017bae8370e166034ac569c357b662358d45f19 (diff) |
Remove bodies from code_model
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 9 |
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; | |||
7 | use either::Either; | 7 | use either::Either; |
8 | use hir_def::{ | 8 | use 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) { |