on master help sign in
doc.close() now unused
commit2a43ee016453e39e2cc4cae510ce7d75606e7199 authorBlaž Hrastnik <blaz@mxxn.io> dateSun 16 Oct 2022, 23:46 (4 years ago) parent1b6f731
1 file changed−8
helix-view/src/document.rs−8
helix-view/src/document.rs−8
@@ -601,14 +601,6 @@ impl Document {
601601 Ok(future)
602602 }
603603
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−
612604 /// Detect the programming language based on the file type.
613605 pub fn detect_language(&mut self, config_loader: Arc<syntax::Loader>) {
614606 if let Some(path) = &self.path {