From ddbac3683bd8d5f584d4e8d20df82c1248229fd9 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Mon, 29 Oct 2018 22:09:13 -0500 Subject: [PATCH] Removing unused code and print. --- src/progress_bar.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/progress_bar.cpp b/src/progress_bar.cpp index 32fff626b..7231b2098 100644 --- a/src/progress_bar.cpp +++ b/src/progress_bar.cpp @@ -8,8 +8,7 @@ #define BAR_WIDTH 72 ProgressBar::ProgressBar() { - // bar = "???% | |"; - + bar = ""; set_value(0.0); } @@ -36,7 +35,6 @@ ProgressBar::set_value(double val) { bar.append(remain, '='); } else { int width = (int)(65*val/100); - std::cout << "Setting width: " << width; bar.append(width, '='); bar.append(1, '>'); bar.append(remain-width-1, ' '); @@ -48,5 +46,5 @@ ProgressBar::set_value(double val) { std::cout << '\r' << bar << std::flush; // reset the bar value - bar = ""; //???% | |"; + bar = ""; }