From a8e7cf74b14c23fbcd4a2e5d14c7b586635964b3 Mon Sep 17 00:00:00 2001 From: Subodh Kumar Date: Mon, 9 Oct 2017 16:41:19 -0700 Subject: [PATCH] evas: there is no effect of variable assignment while clean up. Summary: There is no effect of assingning a variable while clean up. @fix Reviewers: raster, cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5272 Signed-off-by: Cedric Bail --- src/lib/evas/common/language/evas_bidi_utils.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/lib/evas/common/language/evas_bidi_utils.c b/src/lib/evas/common/language/evas_bidi_utils.c index f04c825701..fc9a35dd9b 100644 --- a/src/lib/evas/common/language/evas_bidi_utils.c +++ b/src/lib/evas/common/language/evas_bidi_utils.c @@ -242,7 +242,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len, if (!evas_bidi_is_rtl_str(eina_ustr) && (base_bidi != EVAS_BIDI_PARAGRAPH_RTL)) { - len = -1; goto cleanup; } @@ -263,7 +262,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len, char_types = (EvasBiDiCharType *) malloc(sizeof(EvasBiDiCharType) * len); if (!char_types) { - len = -2; goto cleanup; } fribidi_get_bidi_types(ustr, len, char_types); @@ -271,7 +269,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len, embedding_levels = (EvasBiDiLevel *)malloc(sizeof(EvasBiDiLevel) * len); if (!embedding_levels) { - len = -2; goto cleanup; } @@ -290,7 +287,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len, &direction, embedding_levels + pos)) { - len = -2; goto cleanup; } @@ -317,7 +313,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len, &direction, embedding_levels + pos)) { - len = -2; goto cleanup; } @@ -336,7 +331,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len, if (!fribidi_get_par_embedding_levels(char_types, len, &bidi_props->direction, embedding_levels)) { - len = -2; goto cleanup; } }