File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ type Result<T> = std::result::Result<T, failure::Error>;
22
22
pub struct BatchDatabase {
23
23
runtime : salsa:: Runtime < BatchDatabase > ,
24
24
interner : Arc < HirInterner > ,
25
- // file_counter: u32,
26
25
}
27
26
28
27
impl salsa:: Database for BatchDatabase {
@@ -83,7 +82,7 @@ impl BatchDatabase {
83
82
VfsChange :: AddFile { .. }
84
83
| VfsChange :: RemoveFile { .. }
85
84
| VfsChange :: ChangeFile { .. } => {
86
- // log::warn!("VFS changed while loading");
85
+ // We just need the first scan, so just ignore these
87
86
}
88
87
}
89
88
}
Original file line number Diff line number Diff line change @@ -162,13 +162,6 @@ impl Vfs {
162
162
self . roots [ root] . root . clone ( )
163
163
}
164
164
165
- pub fn path2root ( & self , path : & Path ) -> Option < VfsRoot > {
166
- match self . find_root ( path) {
167
- Some ( ( root, _path, _file) ) => Some ( root) ,
168
- _ => None ,
169
- }
170
- }
171
-
172
165
pub fn path2file ( & self , path : & Path ) -> Option < VfsFile > {
173
166
if let Some ( ( _root, _path, Some ( file) ) ) = self . find_root ( path) {
174
167
return Some ( file) ;
You can’t perform that action at this time.
0 commit comments