Skip to content

Commit

Permalink
Removed unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Mar 27, 2021
1 parent 9b69d94 commit 32f9268
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/libImaging/Quant.c
Expand Up @@ -1373,9 +1373,7 @@ quantize(
goto error_6;
}

if (!build_distance_tables(avgDist, avgDistSortKey, p, nPaletteEntries)) {
goto error_7;
}
build_distance_tables(avgDist, avgDistSortKey, p, nPaletteEntries);

if (!map_image_pixels_from_median_box(
pixelData, nPixels, p, nPaletteEntries, h, avgDist, avgDistSortKey, qp)) {
Expand Down Expand Up @@ -1580,9 +1578,7 @@ quantize2(
goto error_3;
}

if (!build_distance_tables(avgDist, avgDistSortKey, p, nQuantPixels)) {
goto error_4;
}
build_distance_tables(avgDist, avgDistSortKey, p, nQuantPixels);

if (!map_image_pixels(
pixelData, nPixels, p, nQuantPixels, avgDist, avgDistSortKey, qp)) {
Expand Down

0 comments on commit 32f9268

Please sign in to comment.