dist: Remove dead code in Icon class

This commit is contained in:
rdb 2023-02-20 18:04:35 +01:00
parent 127798437f
commit 92e3dbbe58

View File

@ -414,9 +414,6 @@ class Icon:
for x in xrange(size):
pixel = image2.get_pixel(x, size - y - 1)
index = colors.index(pixel)
if index >= 256:
# Find closest pixel instead.
index = closest_indices[index - 256]
fp.write(struct.pack('<B', index))
fp.write(rowalign)
else: