evas_object_textblock: remove unreachable code 48/220848/1
authorBowon Ryu <bowon.ryu@samsung.com>
Tue, 24 Dec 2019 02:36:49 +0000 (11:36 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Tue, 24 Dec 2019 02:40:47 +0000 (11:40 +0900)
Summary:
This less-than-zero comparison of an unsigned value is never true..
this condition can not be true.

Test Plan: N/A

Reviewers: ali.alzyod, woohyun, jsuya

Reviewed By: jsuya

Subscribers: jsuya, cedric, #reviewers, #committers

Tags: #efl

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

Change-Id: Ib217d15d5a0a011a3a97c2d45cff35e3d61d31df
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
src/lib/evas/canvas/evas_object_textblock.c

index 37920a5..b5c818a 100644 (file)
@@ -18123,9 +18123,6 @@ EAPI int evas_textblock_fit_size_range_set(Evas_Object *obj,  unsigned int min_f
    if (!max_changed && !min_changed)
      return EVAS_ERROR_SUCCESS;
 
-   if (min_font_size < 0 || max_font_size <0)
-     return EVAS_ERROR_INVALID_PARAM;
-
    if (max_font_size < min_font_size)
      return EVAS_ERROR_INVALID_PARAM;