diff options
author | Aleksey Kladov <[email protected]> | 2020-06-05 15:45:20 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-06-05 16:22:56 +0100 |
commit | bbb40d746368eb6a38498649a723c7ead0ef8136 (patch) | |
tree | 6496e07d1558ef7b1f8c0cb51648fd44755c8f8e /crates/ra_ide_db/src | |
parent | 9c52f527a1cef7d39c2b1c55b49dc5459d392a4d (diff) |
Minimize FileLoader interface
Diffstat (limited to 'crates/ra_ide_db/src')
-rw-r--r-- | crates/ra_ide_db/src/lib.rs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/crates/ra_ide_db/src/lib.rs b/crates/ra_ide_db/src/lib.rs index 93d5891a0..727d743b5 100644 --- a/crates/ra_ide_db/src/lib.rs +++ b/crates/ra_ide_db/src/lib.rs | |||
@@ -16,8 +16,8 @@ use std::sync::Arc; | |||
16 | use hir::db::{AstDatabase, DefDatabase}; | 16 | use hir::db::{AstDatabase, DefDatabase}; |
17 | use ra_db::{ | 17 | use ra_db::{ |
18 | salsa::{self, Database, Durability}, | 18 | salsa::{self, Database, Durability}, |
19 | Canceled, CheckCanceled, CrateId, FileId, FileLoader, FileLoaderDelegate, RelativePath, | 19 | Canceled, CheckCanceled, CrateId, FileId, FileLoader, FileLoaderDelegate, SourceDatabase, |
20 | SourceDatabase, SourceRootId, Upcast, | 20 | SourceRootId, Upcast, |
21 | }; | 21 | }; |
22 | use rustc_hash::FxHashMap; | 22 | use rustc_hash::FxHashMap; |
23 | 23 | ||
@@ -63,13 +63,6 @@ impl FileLoader for RootDatabase { | |||
63 | fn relevant_crates(&self, file_id: FileId) -> Arc<Vec<CrateId>> { | 63 | fn relevant_crates(&self, file_id: FileId) -> Arc<Vec<CrateId>> { |
64 | FileLoaderDelegate(self).relevant_crates(file_id) | 64 | FileLoaderDelegate(self).relevant_crates(file_id) |
65 | } | 65 | } |
66 | fn resolve_extern_path( | ||
67 | &self, | ||
68 | extern_id: ra_db::ExternSourceId, | ||
69 | relative_path: &RelativePath, | ||
70 | ) -> Option<FileId> { | ||
71 | FileLoaderDelegate(self).resolve_extern_path(extern_id, relative_path) | ||
72 | } | ||
73 | } | 66 | } |
74 | 67 | ||
75 | impl salsa::Database for RootDatabase { | 68 | impl salsa::Database for RootDatabase { |