on master help sign in
doc.close() now unused
2a43ee0Blaž Hrastnik
helix-view/src/document.rs−8
@@ -601,14 +601,6 @@ impl Document {
601 Ok(future)
601 Ok(future)
602 }
602 }
603
603
604− /// Prepares the Document for being closed by stopping any new writes
605− /// and flushing through the queue of pending writes. If any fail,
606− /// it stops early before emptying the rest of the queue.
607− pub async fn close(&mut self) -> Option<DocumentSavedEventResult> {
608− // TODO
609− None
610− }
611−
612 /// Detect the programming language based on the file type.
604 /// Detect the programming language based on the file type.
613 pub fn detect_language(&mut self, config_loader: Arc<syntax::Loader>) {
605 pub fn detect_language(&mut self, config_loader: Arc<syntax::Loader>) {
614 if let Some(path) = &self.path {
606 if let Some(path) = &self.path {