diff options
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r-- | crates/ra_hir_def/src/nameres.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/crates/ra_hir_def/src/nameres.rs b/crates/ra_hir_def/src/nameres.rs index 01d67777d..0a2b32bbd 100644 --- a/crates/ra_hir_def/src/nameres.rs +++ b/crates/ra_hir_def/src/nameres.rs | |||
@@ -390,11 +390,6 @@ impl ModuleSource { | |||
390 | ModuleSource::SourceFile(source_file) | 390 | ModuleSource::SourceFile(source_file) |
391 | } | 391 | } |
392 | } | 392 | } |
393 | |||
394 | pub fn from_file_id(db: &impl DefDatabase, file_id: FileId) -> ModuleSource { | ||
395 | let source_file = db.parse(file_id).tree(); | ||
396 | ModuleSource::SourceFile(source_file) | ||
397 | } | ||
398 | } | 393 | } |
399 | 394 | ||
400 | mod diagnostics { | 395 | mod diagnostics { |