summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorAli Alzyod <ali198724@gmail.com>2020-01-29 19:30:39 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2020-01-29 19:34:19 +0100
commitfc0c60ca8ca588624060d3298be53fa5bdf917b7 (patch)
treefb02263295a379ba6e41ce9d38692e10f5bda3d0 /src/lib
parentfab12448a40da71dc9fe01f5c32a472da45b9632 (diff)
efll.ui.internal_text_interactive: remove useless conditionHEADmaster
Summary: Remove useless condition and unreachable return value Reviewers: woohyun, segfaultxavi, bu5hm4n Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11231
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elementary/efl_ui_internal_text_interactive.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/lib/elementary/efl_ui_internal_text_interactive.c b/src/lib/elementary/efl_ui_internal_text_interactive.c
index 146deb7..fc43e6f 100644
--- a/src/lib/elementary/efl_ui_internal_text_interactive.c
+++ b/src/lib/elementary/efl_ui_internal_text_interactive.c
@@ -349,6 +349,9 @@ _text_filter_text_prepend(Efl_Canvas_Textblock *obj, Efl_Ui_Internal_Text_Intera
349 const char *fmtpre, const char *fmtpost, 349 const char *fmtpre, const char *fmtpost,
350 Eina_Bool clearsel, Eina_Bool changeinfo) 350 Eina_Bool clearsel, Eina_Bool changeinfo)
351{ 351{
352 char *markup_text;
353 Efl_Text_Change_Info *info = NULL;
354
352 EINA_SAFETY_ON_NULL_RETURN_VAL(text, NULL); 355 EINA_SAFETY_ON_NULL_RETURN_VAL(text, NULL);
353 356
354 if ((clearsel) && (en->have_selection)) 357 if ((clearsel) && (en->have_selection))
@@ -356,19 +359,12 @@ _text_filter_text_prepend(Efl_Canvas_Textblock *obj, Efl_Ui_Internal_Text_Intera
356 _sel_range_del_emit(obj, en); 359 _sel_range_del_emit(obj, en);
357 } 360 }
358 361
359 if (text) 362 markup_text = evas_textblock_text_utf8_to_markup(NULL, text);
360 { 363 if (markup_text)
361 char *markup_text; 364 info = _text_filter_markup_prepend_internal(obj, en, c, markup_text,
362 Efl_Text_Change_Info *info = NULL; 365 fmtpre, fmtpost,
363 366 clearsel, changeinfo);
364 markup_text = evas_textblock_text_utf8_to_markup(NULL, text); 367 return info;
365 if (markup_text)
366 info = _text_filter_markup_prepend_internal(obj, en, c, markup_text,
367 fmtpre, fmtpost,
368 clearsel, changeinfo);
369 return info;
370 }
371 return NULL;
372} 368}
373 369
374static void 370static void