[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/khtml/xml
From:       Rob Buis <rwlbuis () xs4all ! nl>
Date:       2004-09-19 13:33:06
Message-ID: 20040919133306.A1564126C6 () office ! kde ! org
[Download RAW message or body]

CVS commit by buis: 

I found this routine is not used anymore, so I removed it. Okayed by Dirk.


  M +0 -36     dom_docimpl.cpp   1.292
  M +0 -2      dom_docimpl.h   1.133


--- kdelibs/khtml/xml/dom_docimpl.h  #1.132:1.133
@@ -316,6 +316,4 @@ public:
 
     // internal
-    NodeImpl *findElement( Id id );
-
     bool prepareMouseEvent( bool readonly, int x, int y, MouseEvent *ev );
 

--- kdelibs/khtml/xml/dom_docimpl.cpp  #1.291:1.292
@@ -1244,40 +1244,4 @@ void DocumentImpl::determineParseMode( c
 }
 
-// Please see if there`s a possibility to merge that code
-// with the next function and getElementByID().
-NodeImpl *DocumentImpl::findElement( Id id )
-{
-    QPtrStack<NodeImpl> nodeStack;
-    NodeImpl *current = _first;
-
-    while(1)
-    {
-        if(!current)
-        {
-            if(nodeStack.isEmpty()) break;
-            current = nodeStack.pop();
-            current = current->nextSibling();
-        }
-        else
-        {
-            if(current->id() == id)
-                return current;
-
-            NodeImpl *child = current->firstChild();
-            if(child)
-            {
-                nodeStack.push(current);
-                current = child;
-            }
-            else
-            {
-                current = current->nextSibling();
-            }
-        }
-    }
-
-    return 0;
-}
-
 NodeImpl *DocumentImpl::nextFocusNode(NodeImpl *fromNode)
 {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic