From b18863f987ef14d44a67c0b8ebaa9c7a7fed7f59 Mon Sep 17 00:00:00 2001
From: Florian Diebold <flodiebold@gmail.com>
Date: Sun, 10 Feb 2019 11:48:59 +0100
Subject: Clean up a bit

---
 crates/ra_batch/src/lib.rs | 3 +--
 crates/ra_vfs/src/lib.rs   | 7 -------
 2 files changed, 1 insertion(+), 9 deletions(-)

(limited to 'crates')

diff --git a/crates/ra_batch/src/lib.rs b/crates/ra_batch/src/lib.rs
index c1cfb76bc..837fff4dc 100644
--- a/crates/ra_batch/src/lib.rs
+++ b/crates/ra_batch/src/lib.rs
@@ -22,7 +22,6 @@ type Result<T> = std::result::Result<T, failure::Error>;
 pub struct BatchDatabase {
     runtime: salsa::Runtime<BatchDatabase>,
     interner: Arc<HirInterner>,
-    // file_counter: u32,
 }
 
 impl salsa::Database for BatchDatabase {
@@ -83,7 +82,7 @@ impl BatchDatabase {
                     VfsChange::AddFile { .. }
                     | VfsChange::RemoveFile { .. }
                     | VfsChange::ChangeFile { .. } => {
-                        // log::warn!("VFS changed while loading");
+                        // We just need the first scan, so just ignore these
                     }
                 }
             }
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 {
         self.roots[root].root.clone()
     }
 
-    pub fn path2root(&self, path: &Path) -> Option<VfsRoot> {
-        match self.find_root(path) {
-            Some((root, _path, _file)) => Some(root),
-            _ => None,
-        }
-    }
-
     pub fn path2file(&self, path: &Path) -> Option<VfsFile> {
         if let Some((_root, _path, Some(file))) = self.find_root(path) {
             return Some(file);
-- 
cgit v1.2.3