mirror of
https://github.com/Intervention/image.git
synced 2025-08-14 01:44:03 +02:00
Remove unused code
This commit is contained in:
@@ -182,22 +182,4 @@ class Collection implements CollectionInterface, IteratorAggregate, Countable
|
|||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getItemsFlat(): array
|
|
||||||
{
|
|
||||||
$iterator = new RecursiveIteratorIterator(
|
|
||||||
new RecursiveArrayIterator($this->items)
|
|
||||||
);
|
|
||||||
|
|
||||||
$items = [];
|
|
||||||
foreach ($iterator as $value) {
|
|
||||||
$keys = [];
|
|
||||||
foreach (range(0, $iterator->getDepth()) as $depth) {
|
|
||||||
$keys[] = $iterator->getSubIterator($depth)->key();
|
|
||||||
}
|
|
||||||
$items[join('.', $keys)] = $value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $items;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user