Skip to content

Commit 7faa703

Browse files
committed
Remove unused variables
Fixes #142
1 parent e4189ac commit 7faa703

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

jcdctmgr.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,9 +1282,6 @@ quantize_trellis_arith(j_compress_ptr cinfo, arith_rates *r, JBLOCKROW coef_bloc
12821282
jpeg_lambda_weights_csf_luma :
12831283
jpeg_lambda_weights_flat;
12841284
int Ss, Se;
1285-
int has_eob;
1286-
float cost_all_zeros;
1287-
float best_cost_skip;
12881285
float cost;
12891286
float run_bits;
12901287
int rate;
@@ -1537,28 +1534,22 @@ quantize_trellis_arith(j_compress_ptr cinfo, arith_rates *r, JBLOCKROW coef_bloc
15371534

15381535
last_coeff_idx = Ss-1;
15391536
best_cost = accumulated_zero_dist[Se] + r->rate_ac[0][1];
1540-
cost_all_zeros = accumulated_zero_dist[Se];
1541-
best_cost_skip = cost_all_zeros;
15421537

15431538
for (i = Ss; i <= Se; i++) {
15441539
int z = jpeg_natural_order[i];
15451540
if (coef_blocks[bi][z] != 0) {
15461541
float cost = accumulated_cost[i] + accumulated_zero_dist[Se] - accumulated_zero_dist[i];
1547-
float cost_wo_eob = cost;
15481542

15491543
if (i < Se)
15501544
cost += r->rate_ac[3*(i-1)][1];
15511545

15521546
if (cost < best_cost) {
15531547
best_cost = cost;
15541548
last_coeff_idx = i;
1555-
best_cost_skip = cost_wo_eob;
15561549
}
15571550
}
15581551
}
15591552

1560-
has_eob = (last_coeff_idx < Se) + (last_coeff_idx == Ss-1);
1561-
15621553
/* Zero out coefficients that are part of runs */
15631554
i = Se;
15641555
while (i >= Ss)

0 commit comments

Comments
 (0)