diff options
Diffstat (limited to 'crates/ra_ide/src/references/classify.rs')
-rw-r--r-- | crates/ra_ide/src/references/classify.rs | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/crates/ra_ide/src/references/classify.rs b/crates/ra_ide/src/references/classify.rs index 9778ca536..4a6e11e27 100644 --- a/crates/ra_ide/src/references/classify.rs +++ b/crates/ra_ide/src/references/classify.rs | |||
@@ -11,12 +11,7 @@ use super::{ | |||
11 | }; | 11 | }; |
12 | use crate::db::RootDatabase; | 12 | use crate::db::RootDatabase; |
13 | 13 | ||
14 | pub(crate) fn classify_name(db: &RootDatabase, name: InFile<&ast::Name>) -> Option<NameDefinition> { | 14 | pub(crate) fn classify_name( |
15 | let mut sb = SourceBinder::new(db); | ||
16 | classify_name2(&mut sb, name) | ||
17 | } | ||
18 | |||
19 | pub(crate) fn classify_name2( | ||
20 | sb: &mut SourceBinder<RootDatabase>, | 15 | sb: &mut SourceBinder<RootDatabase>, |
21 | name: InFile<&ast::Name>, | 16 | name: InFile<&ast::Name>, |
22 | ) -> Option<NameDefinition> { | 17 | ) -> Option<NameDefinition> { |
@@ -132,14 +127,6 @@ pub(crate) fn classify_name2( | |||
132 | } | 127 | } |
133 | 128 | ||
134 | pub(crate) fn classify_name_ref( | 129 | pub(crate) fn classify_name_ref( |
135 | db: &RootDatabase, | ||
136 | name_ref: InFile<&ast::NameRef>, | ||
137 | ) -> Option<NameDefinition> { | ||
138 | let mut sb = SourceBinder::new(db); | ||
139 | classify_name_ref2(&mut sb, name_ref) | ||
140 | } | ||
141 | |||
142 | pub(crate) fn classify_name_ref2( | ||
143 | sb: &mut SourceBinder<RootDatabase>, | 130 | sb: &mut SourceBinder<RootDatabase>, |
144 | name_ref: InFile<&ast::NameRef>, | 131 | name_ref: InFile<&ast::NameRef>, |
145 | ) -> Option<NameDefinition> { | 132 | ) -> Option<NameDefinition> { |