mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 23:34:57 -04:00
dist: Remove dead code in Icon class
This commit is contained in:
parent
127798437f
commit
92e3dbbe58
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user