Remove existing VFS watcher, will be reimplemented

This commit is contained in:
Lucien Greathouse 2018-04-04 17:41:16 -07:00
parent 95d7c61921
commit bb451bc4e9
3 changed files with 1 additions and 119 deletions

View file

@ -1,14 +1,13 @@
use std::path::{Path, PathBuf};
use std::process;
use std::sync::{Arc, Mutex};
use std::thread;
use rand;
use project::{Project, ProjectLoadError};
use middleware::{MiddlewareChain};
use middlewares::{DefaultMiddleware, JsonModelMiddleware, ScriptMiddleware};
use vfs::{VfsSession, VfsWatcher};
use vfs::{VfsSession};
use web;
pub fn serve(project_path: &PathBuf, verbose: bool, port: Option<u64>) {
@ -88,12 +87,5 @@ pub fn serve(project_path: &PathBuf, verbose: bool, port: Option<u64>) {
println!("Server listening on port {}", web_config.port);
{
let vfs = vfs.clone();
thread::spawn(move || {
VfsWatcher::new(vfs).start();
});
}
web::start(web_config, project.clone(), &PLUGIN_CHAIN, vfs.clone());
}