1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-13 17:34:04 +02:00

Remove unused code

This commit is contained in:
Oliver Vogel
2023-10-05 17:35:33 +02:00
parent f3122ae436
commit 79f0b3a70f

View File

@@ -182,22 +182,4 @@ class Collection implements CollectionInterface, IteratorAggregate, Countable
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;
}
}