aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src
diff options
context:
space:
mode:
authorice1000 <[email protected]>2019-12-05 13:28:31 +0000
committerice1000 <[email protected]>2019-12-05 13:28:31 +0000
commit7702f690a9592605be71104ec9d0b732af940fcc (patch)
tree3ba9e21961170598f800ea24ed1f5a1a6b345ffa /crates/ra_hir_def/src
parent762915826ac6893036f8b5cd5e63677ed862f6d9 (diff)
One pub function less is good!
Diffstat (limited to 'crates/ra_hir_def/src')
-rw-r--r--crates/ra_hir_def/src/nameres.rs5
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
400mod diagnostics { 395mod diagnostics {