diff options
author | Aleksey Kladov <[email protected]> | 2019-01-24 21:02:18 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-24 21:02:18 +0000 |
commit | 90215eb5a026d446ae7e5d4e62c43d6d8c82edf1 (patch) | |
tree | 75b35f218e07a8c6feba4e6204a9da762c2a9089 /crates/ra_hir/src/code_model_impl | |
parent | 1a5f32fcb516c1647c7581f21be9b11c8f1f94ba (diff) |
generalize boilerplate
Diffstat (limited to 'crates/ra_hir/src/code_model_impl')
-rw-r--r-- | crates/ra_hir/src/code_model_impl/function.rs | 4 |
1 files changed, 0 insertions, 4 deletions
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 { | |||
30 | db.body_hir(*self) | 30 | db.body_hir(*self) |
31 | } | 31 | } |
32 | 32 | ||
33 | pub(crate) fn module(&self, db: &impl HirDatabase) -> Module { | ||
34 | self.id.loc(db).module | ||
35 | } | ||
36 | |||
37 | /// The containing impl block, if this is a method. | 33 | /// The containing impl block, if this is a method. |
38 | pub(crate) fn impl_block(&self, db: &impl HirDatabase) -> Option<ImplBlock> { | 34 | pub(crate) fn impl_block(&self, db: &impl HirDatabase) -> Option<ImplBlock> { |
39 | let module_impls = db.impls_in_module(self.module(db)); | 35 | let module_impls = db.impls_in_module(self.module(db)); |