Skip to content

Commit cc979ec

Browse files
authored
Merge pull request #433 from derrabus/bugfix/dead-code
Remove dead code
2 parents a7a81fb + 0b0cfa9 commit cc979ec

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/DependencyInjection/Compiler/AddRenderersPass.php

-2
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ public function process(ContainerBuilder $container): void
2424
return;
2525
}
2626

27-
$renderers = [];
2827
$rendererReferences = [];
2928

3029
foreach ($container->findTaggedServiceIds('knp_menu.renderer', true) as $id => $tags) {
3130
foreach ($tags as $attributes) {
3231
if (empty($attributes['alias'])) {
3332
throw new \InvalidArgumentException(sprintf('The alias is not defined in the "knp_menu.renderer" tag for the service "%s"', $id));
3433
}
35-
$renderers[$attributes['alias']] = $id;
3634
$rendererReferences[$attributes['alias']] = new Reference($id);
3735
}
3836
}

0 commit comments

Comments
 (0)