evas: fix unreachable code in _generate_unic_color_key function in Evas.Canvas3D.
authorOleksandr Shcherbina <o.shcherbina@samsung.com>
Mon, 23 Nov 2015 07:11:27 +0000 (08:11 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 23 Nov 2015 07:12:00 +0000 (08:12 +0100)
Summary:
Have a sence. It is hard to assume that more that 16 million color will be used.
@fix
CID: 1339790

Reviewers: raster, cedric

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D3347

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/evas/canvas/evas_canvas3d_node.c

index ef0a96d..cbfbb84 100644 (file)
@@ -41,12 +41,6 @@ _generate_unic_color_key(Evas_Color *color, Evas_Color *bg_color, Evas_Canvas3D_
         GET_NEXT_COLOR
      }
 
-   if ((red == 255) && (green == 255) && (blue == 255))
-     {
-        ERR("Overfill number of color. %d %s", __LINE__, __FILE__);
-        red = green = blue = 0;
-     }
-
    color->r = (double)red / 255;
    color->g = (double)green / 255;
    color->b = (double)blue / 255;