lib: Remove TreeNode::getIterator()
Its the tree who has the iterator. refs #6630
This commit is contained in:
parent
b18405e99f
commit
760819f239
|
@ -3,10 +3,9 @@
|
|||
|
||||
namespace Icinga\Data\Tree;
|
||||
|
||||
use IteratorAggregate;
|
||||
use Icinga\Data\Identifiable;
|
||||
|
||||
class TreeNode implements Identifiable, IteratorAggregate
|
||||
class TreeNode implements Identifiable
|
||||
{
|
||||
/**
|
||||
* The node's ID
|
||||
|
@ -107,13 +106,4 @@ class TreeNode implements Identifiable, IteratorAggregate
|
|||
{
|
||||
return $this->children;
|
||||
}
|
||||
|
||||
/**
|
||||
* (non-PHPDoc)
|
||||
* @see IteratorAggregate::getIterator() For the method documentation.
|
||||
*/
|
||||
public function getIterator()
|
||||
{
|
||||
return new TreeNodeIterator($this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue