Evas textblock: Remove unused function: _evas_textblock_cursor_node_format_before_pos...
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:43:15 +0000 (10:43 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:43:15 +0000 (10:43 +0000)
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

index f69cfe5..14a834f 100644 (file)
@@ -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.