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;
|
return $this->items;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get whether the navigation has items
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public function hasItems()
|
|
||||||
{
|
|
||||||
return ! empty($this->items);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return whether this navigation is empty
|
* Return whether this navigation is empty
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue