lib: Remove TreeNode::getIterator()

Its the tree who has the iterator.

refs #6630
This commit is contained in:
Eric Lippmann 2015-02-10 17:01:32 +01:00
parent b18405e99f
commit 760819f239
1 changed files with 1 additions and 11 deletions

View File

@ -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);
}
}