diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index 0100ac91c0..906716dfce 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; use either::Either; use hir_def::{ adt::VariantData, - body::{Body, BodySourceMap}, builtin_type::BuiltinType, docs::Documentation, expr::{BindingAnnotation, Pat, PatId}, @@ -511,14 +510,6 @@ impl Function { db.function_data(self.id).params.clone() } - pub fn body_source_map(self, db: &impl HirDatabase) -> Arc { - db.body_with_source_map(self.id.into()).1 - } - - pub fn body(self, db: &impl HirDatabase) -> Arc { - db.body(self.id.into()) - } - /// The containing impl block, if this is a method. pub fn impl_block(self, db: &impl DefDatabase) -> Option { match self.container(db) {