aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-02-17 17:25:35 +0000
committerAleksey Kladov <[email protected]>2019-02-17 17:25:35 +0000
commite95fb7c9f96eef5b82b1b1bec5126f0cd4c05a9b (patch)
treeef22deb476428fe66e6ac7878a7b969a0118162b /crates
parent162dea51bfa6b7f6d64d138a84c16c96495a0fcd (diff)
remove duplicated method
Diffstat (limited to 'crates')
-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 }