cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5d4f3b22c4212b755a881098bf28e5ee02a1a124

commit 5d4f3b22c4212b755a881098bf28e5ee02a1a124
Author: Oleksandr Shcherbina <o.shcherb...@samsung.com>
Date:   Mon Nov 23 08:11:27 2015 +0100

    evas: fix unreachable code in _generate_unic_color_key function in 
Evas.Canvas3D.
    
    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 <ced...@osg.samsung.com>
---
 src/lib/evas/canvas/evas_canvas3d_node.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/lib/evas/canvas/evas_canvas3d_node.c 
b/src/lib/evas/canvas/evas_canvas3d_node.c
index ef0a96d..cbfbb84 100644
--- a/src/lib/evas/canvas/evas_canvas3d_node.c
+++ b/src/lib/evas/canvas/evas_canvas3d_node.c
@@ -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;

-- 


Reply via email to