From 842f5a9a02a260b1187798c2d8ae59872a12b692 Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Tue, 24 Dec 2019 11:36:49 +0900 Subject: [PATCH] evas_object_textblock: remove unreachable code 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 --- src/lib/evas/canvas/evas_object_textblock.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c index 37920a5..b5c818a 100644 --- a/src/lib/evas/canvas/evas_object_textblock.c +++ b/src/lib/evas/canvas/evas_object_textblock.c @@ -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; -- 2.7.4