printf-utils: Remove dead HAVE_SQUEUE code
This commit is contained in:
1 parent
f3870fd788
commit
08e53f404d
1 file changed
-10
@@ -38,13 +38,6 @@ void printf_progressbar(unsigned long long part, unsigned long long total) {
|
|||||||
pc = (int)(part*100/total);
|
pc = (int)(part*100/total);
|
||||||
(pc<0)?pc=0:(pc>100)?pc=100:0;
|
(pc<0)?pc=0:(pc>100)?pc=100:0;
|
||||||
|
|
||||||
#if HAVE_SQUEUE
|
|
||||||
if (qmode) {
|
|
||||||
char msg[128];
|
|
||||||
sprintf(msg, "%d%%", pc);
|
|
||||||
squeue_push2(p, "bar", msg, 0);
|
|
||||||
} else {
|
|
||||||
#endif
|
|
||||||
PRINTF_BACK();
|
PRINTF_BACK();
|
||||||
PRINTF_ADD("\x1b[K %3d%% [", pc);
|
PRINTF_ADD("\x1b[K %3d%% [", pc);
|
||||||
if (columns)
|
if (columns)
|
||||||
@@ -57,9 +50,6 @@ void printf_progressbar(unsigned long long part, unsigned long long total) {
|
|||||||
PRINTF_ADD("]");
|
PRINTF_ADD("]");
|
||||||
if (part == total) PRINTF_END();
|
if (part == total) PRINTF_END();
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
#if HAVE_SQUEUE
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user