From: tasn Date: Thu, 14 Jul 2011 14:25:46 +0000 (+0000) Subject: Evas textblock: Removed useless code. We should never get there. X-Git-Tag: submit/trunk/20120815.174732~1140 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f17d9c326ecb41e8684d6d4f660f5aa4bcfbd212;p=profile%2Fivi%2Fevas.git Evas textblock: Removed useless code. We should never get there. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@61370 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/canvas/evas_object_textblock.c b/src/lib/canvas/evas_object_textblock.c index 9ff941c..ac44db4 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/src/lib/canvas/evas_object_textblock.c @@ -7594,7 +7594,7 @@ evas_textblock_cursor_char_coord_set(Evas_Textblock_Cursor *cur, Evas_Coord x, E Evas_Object_Textblock *o; Evas_Object_Textblock_Paragraph *found_par; Evas_Object_Textblock_Line *ln; - Evas_Object_Textblock_Item *it = NULL, *it_break = NULL; + Evas_Object_Textblock_Item *it = NULL; if (!cur) return EINA_FALSE; o = (Evas_Object_Textblock *)(cur->obj->object_data); @@ -7644,11 +7644,6 @@ evas_textblock_cursor_char_coord_set(Evas_Textblock_Cursor *cur, Evas_Coord x, E EINA_INLIST_FOREACH(ln->items, it) { - if ((it->x + ln->x) > x) - { - it_break = it; - break; - } if (((it->x + ln->x) <= x) && (((it->x + ln->x) + it->adv) > x)) { if (it->type == EVAS_TEXTBLOCK_ITEM_TEXT) @@ -7682,23 +7677,6 @@ evas_textblock_cursor_char_coord_set(Evas_Textblock_Cursor *cur, Evas_Coord x, E } } } - if (it_break) - { - it = it_break; - cur->node = it->text_node; - cur->pos = it->text_pos; - - /*FIXME: NOTE: Not sure what it's good for. - * needs smarter handling, ATM just check, if it's - * the first item, then go to the end of the line, helps - * with rtl langs, doesn't affect ltr langs that much. */ - if (!EINA_INLIST_GET(it)->prev) - { - evas_textblock_cursor_line_char_last(cur); - } - - return EINA_TRUE; - } } } }