Browse Source

dist: Remove dead code in Icon class

rdb 2 years ago
parent
commit
92e3dbbe58
1 changed files with 0 additions and 3 deletions
  1. 0 3
      direct/src/p3d/DeploymentTools.py

+ 0 - 3
direct/src/p3d/DeploymentTools.py

@@ -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: