From a6a44ecb9dffef3d1efc12fa91645a3e669011fa 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 --- 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 c15da53564..c25b9dcc7a 100644 --- a/src/lib/evas/canvas/evas_object_textblock.c +++ b/src/lib/evas/canvas/evas_object_textblock.c @@ -17397,9 +17397,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;