diff --git a/src/ui/app.rs b/src/ui/app.rs index d6d323a8..a4c93a74 100644 --- a/src/ui/app.rs +++ b/src/ui/app.rs @@ -6542,26 +6542,6 @@ impl Tty7App { crate::ui::keymap::rebind(cx); cx.notify(); } - - #[allow(dead_code)] - pub(crate) fn open_config_file(&self, cx: &Context) { - let Some(path) = crate::core::config::config_path("config.json") else { - return; - }; - if !path.exists() { - cx.global::().save(); - } - let opener = if cfg!(target_os = "macos") { - "open" - } else if cfg!(windows) { - "explorer" - } else { - "xdg-open" - }; - if let Err(e) = std::process::Command::new(opener).arg(&path).spawn() { - log::warn!("failed to open {}: {e}", path.display()); - } - } } #[cfg(test)]