mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
doc.close() now unused
This commit is contained in:
parent
1b6f7319cd
commit
2a43ee0164
@ -601,14 +601,6 @@ impl Future<Output = Result<DocumentSavedEvent, anyhow::Error>> + 'static + Send
|
||||
Ok(future)
|
||||
}
|
||||
|
||||
/// Prepares the Document for being closed by stopping any new writes
|
||||
/// and flushing through the queue of pending writes. If any fail,
|
||||
/// it stops early before emptying the rest of the queue.
|
||||
pub async fn close(&mut self) -> Option<DocumentSavedEventResult> {
|
||||
// TODO
|
||||
None
|
||||
}
|
||||
|
||||
/// Detect the programming language based on the file type.
|
||||
pub fn detect_language(&mut self, config_loader: Arc<syntax::Loader>) {
|
||||
if let Some(path) = &self.path {
|
||||
|
Loading…
Reference in New Issue
Block a user