From a4c2081f64512117bafb70d73f7bbe1d56ef4ee8 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 2 Sep 2015 13:29:07 +0200 Subject: [PATCH] Navigation: Remove method hasItems() Redundant, as it's expressible with "! $nav->isEmpty()". refs #5600 --- library/Icinga/Web/Navigation/Navigation.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/library/Icinga/Web/Navigation/Navigation.php b/library/Icinga/Web/Navigation/Navigation.php index 5eff8e37c..5aa0c9576 100644 --- a/library/Icinga/Web/Navigation/Navigation.php +++ b/library/Icinga/Web/Navigation/Navigation.php @@ -226,16 +226,6 @@ class Navigation implements ArrayAccess, Countable, IteratorAggregate return $this->items; } - /** - * Get whether the navigation has items - * - * @return bool - */ - public function hasItems() - { - return ! empty($this->items); - } - /** * Return whether this navigation is empty *