From 00447488ee02aedd431d77e227cdd3881d5ddb56 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 3 Sep 2015 08:49:30 +0200 Subject: [PATCH] NavigationItem: Drop interface Countable $item->count(), count of what? $item->getChildren()->count(), Its children, of course! refs #5600 --- library/Icinga/Web/Navigation/NavigationItem.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/library/Icinga/Web/Navigation/NavigationItem.php b/library/Icinga/Web/Navigation/NavigationItem.php index 22656bc42..2a891c45f 100644 --- a/library/Icinga/Web/Navigation/NavigationItem.php +++ b/library/Icinga/Web/Navigation/NavigationItem.php @@ -3,7 +3,6 @@ namespace Icinga\Web\Navigation; -use Countable; use Exception; use InvalidArgumentException; use IteratorAggregate; @@ -15,7 +14,7 @@ use Icinga\Web\Url; /** * A navigation item */ -class NavigationItem implements Countable, IteratorAggregate +class NavigationItem implements IteratorAggregate { /** * 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} */