progbar: eliminate dead store

pull/1321/head
nick black 4 years ago
parent e9cd118525
commit 5c5f892b3e
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -91,7 +91,6 @@ progbar_redraw(ncprogbar* n){
return -1; return -1;
} }
} }
double progress = n->progress * range;
if(n->retrograde){ if(n->retrograde){
delt *= -1; delt *= -1;
if(pos){ if(pos){
@ -99,11 +98,6 @@ progbar_redraw(ncprogbar* n){
}else{ }else{
pos = range - 1; pos = range - 1;
} }
if(horizontal){
progress = range - progress;
}
}else if(!horizontal){
progress = range - progress;
} }
double eachcell = (1.0 / range); // how much each cell is worth double eachcell = (1.0 / range); // how much each cell is worth
double chunk = n->progress; double chunk = n->progress;

Loading…
Cancel
Save