NavigationItem: Drop interface Countable

$item->count(), count of what?
$item->getChildren()->count(), Its children, of course!

refs #5600
This commit is contained in:
Johannes Meyer 2015-09-03 08:49:30 +02:00
parent f4a6ab73c0
commit 00447488ee
1 changed files with 1 additions and 10 deletions

View File

@ -3,7 +3,6 @@
namespace Icinga\Web\Navigation; namespace Icinga\Web\Navigation;
use Countable;
use Exception; use Exception;
use InvalidArgumentException; use InvalidArgumentException;
use IteratorAggregate; use IteratorAggregate;
@ -15,7 +14,7 @@ use Icinga\Web\Url;
/** /**
* A navigation item * A navigation item
*/ */
class NavigationItem implements Countable, IteratorAggregate class NavigationItem implements IteratorAggregate
{ {
/** /**
* Alternative markup element for items without a url * Alternative markup element for items without a url
@ -129,14 +128,6 @@ class NavigationItem implements Countable, IteratorAggregate
} }
/**
* {@inheritdoc}
*/
public function count()
{
return $this->getChildren()->count();
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */