aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_vfs/src
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-02-10 10:48:59 +0000
committerFlorian Diebold <[email protected]>2019-02-10 10:48:59 +0000
commitb18863f987ef14d44a67c0b8ebaa9c7a7fed7f59 (patch)
tree035c27557b40cc6102f4a4cafea401d5fe56a767 /crates/ra_vfs/src
parent6f81a372db9e402126dcc36a725e9b1d71491955 (diff)
Clean up a bit
Diffstat (limited to 'crates/ra_vfs/src')
-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 2d861f832..3805be570 100644
--- a/crates/ra_vfs/src/lib.rs
+++ b/crates/ra_vfs/src/lib.rs
@@ -162,13 +162,6 @@ impl Vfs {
162 self.roots[root].root.clone() 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 pub fn path2file(&self, path: &Path) -> Option<VfsFile> { 165 pub fn path2file(&self, path: &Path) -> Option<VfsFile> {
173 if let Some((_root, _path, Some(file))) = self.find_root(path) { 166 if let Some((_root, _path, Some(file))) = self.find_root(path) {
174 return Some(file); 167 return Some(file);