From 90215eb5a026d446ae7e5d4e62c43d6d8c82edf1 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 25 Jan 2019 00:02:18 +0300 Subject: generalize boilerplate --- crates/ra_hir/src/code_model_impl/function.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'crates/ra_hir/src/code_model_impl') diff --git a/crates/ra_hir/src/code_model_impl/function.rs b/crates/ra_hir/src/code_model_impl/function.rs index 8a2ab5714..6ce5c77b1 100644 --- a/crates/ra_hir/src/code_model_impl/function.rs +++ b/crates/ra_hir/src/code_model_impl/function.rs @@ -30,10 +30,6 @@ impl Function { db.body_hir(*self) } - pub(crate) fn module(&self, db: &impl HirDatabase) -> Module { - self.id.loc(db).module - } - /// The containing impl block, if this is a method. pub(crate) fn impl_block(&self, db: &impl HirDatabase) -> Option { let module_impls = db.impls_in_module(self.module(db)); -- cgit v1.2.3