From 56d84732bf683275925852ea7a840e30868e7d73 Mon Sep 17 00:00:00 2001 From: tasn Date: Sun, 30 Jan 2011 10:43:15 +0000 Subject: [PATCH] Evas textblock: Remove unused function: _evas_textblock_cursor_node_format_before_pos_get. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@56518 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_textblock.c | 48 ---------------------------------- 1 file changed, 48 deletions(-) diff --git a/src/lib/canvas/evas_object_textblock.c b/src/lib/canvas/evas_object_textblock.c index f69cfe5..14a834f 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/src/lib/canvas/evas_object_textblock.c @@ -4589,54 +4589,6 @@ _evas_textblock_cursor_node_format_before_or_at_pos_get(const Evas_Textblock_Cur /** * @internal - * Return the last format that applies to a specific cursor or at the specific - * position the cursor points to. This means the format node before the - * position of the cursor in the text node is returned or the previous's text - * node's format node. - * - * @param cur the position to look at. - * @return the format node found. - */ -#if 0 // not used anymore? -static Evas_Object_Textblock_Node_Format * -_evas_textblock_cursor_node_format_before_pos_get(const Evas_Textblock_Cursor *cur) -{ - Evas_Object_Textblock_Node_Format *node, *pitr = NULL; - Evas_Object_Textblock_Node_Format *itr; - size_t position = 0; - - if (!cur->node) return NULL; - - node = cur->node->format_node; - if (!node) return NULL; - /* If there is no exclusive format node to this paragraph return the - * previous's node */ - if (node->text_node != cur->node) - { - return node; - } - else if (node->offset > cur->pos) - { - return _NODE_FORMAT(EINA_INLIST_GET(node)->prev); - } - /* Find the main format node */ - pitr = _NODE_FORMAT(EINA_INLIST_GET(node)->prev); - EINA_INLIST_FOREACH(node, itr) - { - position += itr->offset; - if ((itr->text_node != cur->node) || - (position >= cur->pos)) - { - return pitr; - } - pitr = itr; - } - return pitr; -} -#endif - -/** - * @internal * Find the layout item and line that match the cursor. * * @param cur the cursor we are currently at. - NOT NULL. -- 2.7.4