Skip to content

Commit

Permalink
[refactor] actually add_child impl is dead-code
Browse files Browse the repository at this point in the history
  • Loading branch information
kares committed Oct 16, 2019
1 parent 6129285 commit 77df21b
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions ext/java/nokogiri/XmlDocumentFragment.java
Expand Up @@ -178,20 +178,6 @@ public XmlElement getFragmentContext() {
return fragmentContext;
}

public void add_child(ThreadContext context, XmlNode child) {
// Some magic for DocumentFragment

XmlNodeSet children = (XmlNodeSet) child.children(context);

int length = children.length();
if (length != 0) {
for (int i = 0; i < length; i++) {
XmlNode item = ((XmlNode) children.nodes[i]).cloneImpl(true);
add_child(context, item);
}
}
}

@Override
public void relink_namespace(ThreadContext context) {
((XmlNodeSet) children(context)).relink_namespace(context);
Expand Down

0 comments on commit 77df21b

Please sign in to comment.