Skip to content

Commit b18863f

Browse files
committed
Clean up a bit
1 parent 6f81a37 commit b18863f

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

crates/ra_batch/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ type Result<T> = std::result::Result<T, failure::Error>;
2222
pub struct BatchDatabase {
2323
runtime: salsa::Runtime<BatchDatabase>,
2424
interner: Arc<HirInterner>,
25-
// file_counter: u32,
2625
}
2726

2827
impl salsa::Database for BatchDatabase {
@@ -83,7 +82,7 @@ impl BatchDatabase {
8382
VfsChange::AddFile { .. }
8483
| VfsChange::RemoveFile { .. }
8584
| VfsChange::ChangeFile { .. } => {
86-
// log::warn!("VFS changed while loading");
85+
// We just need the first scan, so just ignore these
8786
}
8887
}
8988
}

crates/ra_vfs/src/lib.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,6 @@ impl Vfs {
162162
self.roots[root].root.clone()
163163
}
164164

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-
172165
pub fn path2file(&self, path: &Path) -> Option<VfsFile> {
173166
if let Some((_root, _path, Some(file))) = self.find_root(path) {
174167
return Some(file);

0 commit comments

Comments
 (0)