aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_vfs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_vfs')
-rw-r--r--crates/ra_vfs/src/lib.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/crates/ra_vfs/src/lib.rs b/crates/ra_vfs/src/lib.rs
index c78096ee1..1bac3f86f 100644
--- a/crates/ra_vfs/src/lib.rs
+++ b/crates/ra_vfs/src/lib.rs
@@ -101,13 +101,6 @@ impl Vfs {
101 rel_path.to_path(root_path) 101 rel_path.to_path(root_path)
102 } 102 }
103 103
104 pub fn file_for_path(&self, path: &Path) -> Option<VfsFile> {
105 if let Some((_root, _path, Some(file))) = self.find_root(path) {
106 return Some(file);
107 }
108 None
109 }
110
111 pub fn num_roots(&self) -> usize { 104 pub fn num_roots(&self) -> usize {
112 self.roots.len() 105 self.roots.len()
113 } 106 }