Removed unused function get_child_text_node() in dlls/mshtml/editor.c
Gerald Pfeifer
gerald at pfeifer.com
Sat Sep 29 10:04:12 CDT 2007
This function is not used anywhere. Verified by a build on FreeBSD 6.2
and SUSE Linux as well. (The latter has taken a bit which is why my mails
arrive out of order, re the previous comment.)
Gerald
ChangeLog:
Removed unused function get_child_text_node().
Index: dlls/mshtml/editor.c
===================================================================
RCS file: /home/wine/wine/dlls/mshtml/editor.c,v
retrieving revision 1.38
diff -u -3 -p -r1.38 editor.c
--- dlls/mshtml/editor.c 27 Sep 2007 14:28:52 -0000 1.38
+++ dlls/mshtml/editor.c 29 Sep 2007 13:44:03 -0000
@@ -413,43 +413,6 @@ static BOOL is_visible_text_node(nsIDOMN
return len != 0;
}
-static nsIDOMNode *get_child_text_node(nsIDOMNode *node, BOOL first)
-{
- nsIDOMNode *iter, *iter2;
-
- if(first)
- nsIDOMNode_GetFirstChild(node, &iter);
- else
- nsIDOMNode_GetLastChild(node, &iter);
-
- while(iter) {
- PRUint16 node_type;
-
- nsIDOMNode_GetNodeType(iter, &node_type);
- switch(node_type) {
- case TEXT_NODE:
- if(is_visible_text_node(iter))
- return iter;
- case ELEMENT_NODE:
- iter2 = get_child_text_node(iter, first);
- if(iter2) {
- nsIDOMNode_Release(iter);
- return iter2;
- }
- }
-
- if(first)
- nsIDOMNode_GetNextSibling(iter, &iter2);
- else
- nsIDOMNode_GetPreviousSibling(iter, &iter2);
-
- nsIDOMNode_Release(iter);
- iter = iter2;
- }
-
- return NULL;
-}
-
static void handle_arrow_key(HTMLDocument *This, nsIDOMKeyEvent *event, const char * const cmds[4])
{
int i=0;
More information about the wine-patches
mailing list