summaryrefslogtreecommitdiffstats
path: root/src/util/progress.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/progress.rs')
-rw-r--r--src/util/progress.rs14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/util/progress.rs b/src/util/progress.rs
index e403989..57f9d67 100644
--- a/src/util/progress.rs
+++ b/src/util/progress.rs
@@ -14,17 +14,15 @@ use getset::CopyGetters;
#[derive(Clone, Debug, CopyGetters)]
pub struct ProgressBars {
bar_template: String,
- spinner_template: String,
#[getset(get_copy = "pub")]
hide: bool,
}
impl ProgressBars {
- pub fn setup(bar_template: String, spinner_template: String, hide: bool) -> Self {
+ pub fn setup(bar_template: String, hide: bool) -> Self {
ProgressBars {
bar_template,
- spinner_template,
hide,
}
}
@@ -38,14 +36,4 @@ impl ProgressBars {
b
}
}
-
- pub fn spinner(&self) -> ProgressBar {
- if self.hide {
- ProgressBar::hidden()
- } else {
- let bar = ProgressBar::new_spinner();
- bar.set_style(ProgressStyle::default_spinner().template(&self.spinner_template));
- bar
- }
- }
}