diff options
Diffstat (limited to 'crates/ra_hir/src/source_binder.rs')
-rw-r--r-- | crates/ra_hir/src/source_binder.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/crates/ra_hir/src/source_binder.rs b/crates/ra_hir/src/source_binder.rs index 8e1f29019..0d2746ac0 100644 --- a/crates/ra_hir/src/source_binder.rs +++ b/crates/ra_hir/src/source_binder.rs | |||
@@ -89,12 +89,6 @@ fn module_from_source( | |||
89 | ) | 89 | ) |
90 | } | 90 | } |
91 | 91 | ||
92 | pub fn function_from_position(db: &impl HirDatabase, position: FilePosition) -> Option<Function> { | ||
93 | let file = db.parse(position.file_id); | ||
94 | let fn_def = find_node_at_offset::<ast::FnDef>(file.syntax(), position.offset)?; | ||
95 | function_from_source(db, position.file_id, fn_def) | ||
96 | } | ||
97 | |||
98 | fn function_from_source( | 92 | fn function_from_source( |
99 | db: &impl HirDatabase, | 93 | db: &impl HirDatabase, |
100 | file_id: FileId, | 94 | file_id: FileId, |