Skip to content

Commit a1ddab3

Browse files
committed
remove Countable from IconRegistryInterface
1 parent 549f2ab commit a1ddab3

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

src/Icons/src/IconRegistryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
* @internal
2323
*/
24-
interface IconRegistryInterface extends \IteratorAggregate, \Countable
24+
interface IconRegistryInterface extends \IteratorAggregate
2525
{
2626
/**
2727
* @throws IconNotFoundException

src/Icons/src/Registry/CacheIconRegistry.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,6 @@ public function getIterator(): \Traversable
6161
}
6262
}
6363

64-
public function count(): int
65-
{
66-
$count = 0;
67-
68-
foreach ($this->registries as $registry) {
69-
$count += \count($registry);
70-
}
71-
72-
return $count;
73-
}
74-
7564
public function isOptional(): bool
7665
{
7766
return true;

src/Icons/src/Registry/LocalSvgIconRegistry.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,6 @@ public function getIterator(): \Traversable
8282
}
8383
}
8484

85-
public function count(): int
86-
{
87-
return $this->finder()->count();
88-
}
89-
9085
private function finder(): Finder
9186
{
9287
return Finder::create()->in($this->iconDir)->files()->name('*.svg');

0 commit comments

Comments
 (0)