Remove App::on_open_files, as it's a subset of on_open_urls

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-04-20 17:36:27 +02:00
parent d725876e64
commit a210b05d00
4 changed files with 0 additions and 48 deletions

View file

@ -274,20 +274,6 @@ impl App {
self
}
pub fn on_open_files<F>(&mut self, mut callback: F) -> &mut Self
where
F: 'static + FnMut(Vec<PathBuf>, &mut MutableAppContext),
{
let cx = self.0.clone();
self.0
.borrow_mut()
.foreground_platform
.on_open_files(Box::new(move |paths| {
callback(paths, &mut *cx.borrow_mut())
}));
self
}
pub fn on_open_urls<F>(&mut self, mut callback: F) -> &mut Self
where
F: 'static + FnMut(Vec<String>, &mut MutableAppContext),