From 71ef8e74aa931aae18111f2220942abeeb6b3355 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Fri, 21 Oct 2022 14:24:01 +0900 Subject: [PATCH] cli: remove now unused Ui::with_cwd() --- src/ui.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/ui.rs b/src/ui.rs index 24ec3ac1c..c2b8e3564 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -75,10 +75,6 @@ fn use_color(choice: ColorChoice) -> bool { impl Ui { pub fn for_terminal(settings: UserSettings) -> Ui { let cwd = std::env::current_dir().unwrap(); - Self::with_cwd(cwd, settings) - } - - pub fn with_cwd(cwd: PathBuf, settings: UserSettings) -> Ui { let color = use_color(color_setting(&settings)); let formatter_factory = FormatterFactory::prepare(&settings, color); Ui {