mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-24 12:48:55 +00:00
cli: remove now unused Ui::with_cwd()
This commit is contained in:
parent
3fe6da1b51
commit
71ef8e74aa
1 changed files with 0 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue