Remove unused SimpleXMLElement::children() method (#339)

This commit is contained in:
Adrien Loison authored and GitHub committed 2016-10-17 22:49:37 -07:00
1 parent 752f4bf64e
commit 2fa01cd838
1 file changed
-16
@@ -149,22 +149,6 @@ class SimpleXMLElement
return $doesElementExist ? $this->wrapSimpleXMLElement($realElement) : null; return $doesElementExist ? $this->wrapSimpleXMLElement($realElement) : null;
} }
/**
* Returns the immediate children.
*
* @return SimpleXMLElement[] The children
*/
public function children()
{
$children = [];
foreach ($this->simpleXMLElement->children() as $child) {
$children[] = $this->wrapSimpleXMLElement($child);
}
return $children;
}
/** /**
* @return string * @return string
*/ */