mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Merge pull request #5363 from radarhere/unreachable
Removed build_distance_tables return value
This commit is contained in:
commit
9431d94bee
|
@ -789,7 +789,7 @@ resort_distance_tables(
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
static void
|
||||
build_distance_tables(
|
||||
uint32_t *avgDist, uint32_t **avgDistSortKey, Pixel *p, uint32_t nEntries) {
|
||||
uint32_t i, j;
|
||||
|
@ -811,7 +811,6 @@ build_distance_tables(
|
|||
sizeof(uint32_t *),
|
||||
_sort_ulong_ptr_keys);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -1373,9 +1372,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)) {
|
||||
|
@ -1580,9 +1577,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)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user