hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=835c8d1b77ac100cb92876fb447879427c484428

commit 835c8d1b77ac100cb92876fb447879427c484428
Author: Youngbok Shin <[email protected]>
Date:   Thu Dec 8 13:31:04 2016 +0900

    Edje: remove a unreachable code from edje_text.c
    
    Summary:
    If "text" is NULL, it is set as empty string in the above code.
    So, the removed line is unreachable.
    
    Test Plan: N/A
    
    Reviewers: raster, cedric, herdsman, woohyun, jpeg, Hermet
    
    Reviewed By: Hermet
    
    Differential Revision: https://phab.enlightenment.org/D4462
---
 src/lib/edje/edje_text.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/lib/edje/edje_text.c b/src/lib/edje/edje_text.c
index 517cdab..33b83f4 100644
--- a/src/lib/edje/edje_text.c
+++ b/src/lib/edje/edje_text.c
@@ -297,7 +297,6 @@ _edje_text_recalc_apply(Edje *ed, Edje_Real_Part *ep,
    _edje_calc_params_need_type_text(params);
    if (params->type.text->size)
      size = params->type.text->size;
-   if (!text) text = "";
 
    if ((text == ep->typedata.text->cache.in_str)
        || (text && ep->typedata.text->cache.in_str && 
!strcmp(ep->typedata.text->cache.in_str, text)))

-- 


Reply via email to