Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Nov 21, 2024
1 parent 2dcb989 commit 3557483
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1345,49 +1345,6 @@ public Node adoptNode(final Node source) {
return node;
}

/**
* Traverses the DOM Tree and expands deferred nodes and their children.
*
* @param node the node
*
*/
protected void undeferChildren(Node node) {
final Node top = node;

while (null != node) {
final NamedNodeMap attributes = node.getAttributes();
if (attributes != null) {
final int length = attributes.getLength();
for (int i = 0; i < length; ++i) {
undeferChildren(attributes.item(i));
}
}

Node nextNode;
nextNode = node.getFirstChild();

while (null == nextNode) {

if (top.equals(node)) {
break;
}

nextNode = node.getNextSibling();

if (null == nextNode) {
node = node.getParentNode();

if ((null == node) || (top.equals(node))) {
nextNode = null;
break;
}
}
}

node = nextNode;
}
}

/**
* Introduced in DOM Level 2 Returns the Element whose ID is given by elementId.
* If no such element exists, returns null. Behavior is not defined if more than
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.htmlunit.cyberneko.xerces.dom.CoreDocumentImpl;
import org.htmlunit.cyberneko.xerces.dom.DOMMessageFormatter;
import org.htmlunit.cyberneko.xerces.dom.DocumentImpl;
import org.htmlunit.cyberneko.xerces.dom.EntityImpl;
import org.htmlunit.cyberneko.xerces.dom.TextImpl;
import org.htmlunit.cyberneko.xerces.util.ErrorHandlerWrapper;
import org.htmlunit.cyberneko.xerces.util.SAXMessageFormatter;
Expand Down Expand Up @@ -110,7 +109,6 @@ public class AbstractDOMParser extends AbstractXMLDocumentParser {
/** Current node. */
protected Node fCurrentNode;
protected CDATASection fCurrentCDATASection;
protected EntityImpl fCurrentEntityDecl;

/** Character buffer */
protected final XMLString fStringBuffer = new XMLString();
Expand Down

0 comments on commit 3557483

Please sign in to comment.