raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=35b65e0643f264ef5e7063ae1c92559fe67ce7ed

commit 35b65e0643f264ef5e7063ae1c92559fe67ce7ed
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Thu Sep 28 12:08:16 2017 +0900

    efl ui text - remove logically dead code
    
    it is indeed pointless code. fix coverity CID 1380544
---
 src/lib/elementary/efl_ui_textpath.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/lib/elementary/efl_ui_textpath.c 
b/src/lib/elementary/efl_ui_textpath.c
index 722dbe305d..9b0686f3b3 100644
--- a/src/lib/elementary/efl_ui_textpath.c
+++ b/src/lib/elementary/efl_ui_textpath.c
@@ -274,8 +274,6 @@ _text_draw(Efl_Ui_Textpath_Data *pd)
              slice_no = pd->slice_no * seg->length / (double)pd->total_length;
              if (slice_no == 0)
                slice_no = len * slice_unit + 1;
-             if (remained_w == 0)
-               slice_no = total_slice - drawn_slice;
              drawn_slice += slice_no;
              _segment_draw(pd, slice_no, w1, w2, cur_map_point, map, 
seg->bezier);
              cur_map_point += slice_no * 4;

-- 


Reply via email to