mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Navigation: Remove method hasItems()
Redundant, as it's expressible with "! $nav->isEmpty()". refs #5600
This commit is contained in:
parent
f449c78dbf
commit
a4c2081f64
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user