@@ -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 {