From 1a58639bf82573123ac473106e842c88f9c3b5f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Tue, 2 Feb 2016 13:52:08 +0100 Subject: [PATCH] [DependencyInjection] Remove unused parameter --- .../Compiler/InlineServiceDefinitionsPass.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php b/src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php index 6a0a02b931..a4e2e041b2 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php @@ -72,7 +72,7 @@ class InlineServiceDefinitionsPass implements RepeatablePassInterface continue; } - if ($this->isInlineableDefinition($container, $id, $definition = $container->getDefinition($id))) { + if ($this->isInlineableDefinition($id, $definition = $container->getDefinition($id))) { $this->compiler->addLogMessage($this->formatter->formatInlineService($this, $id, $this->currentId)); if ($definition->isShared()) { @@ -100,13 +100,12 @@ class InlineServiceDefinitionsPass implements RepeatablePassInterface /** * Checks if the definition is inlineable. * - * @param ContainerBuilder $container - * @param string $id - * @param Definition $definition + * @param string $id + * @param Definition $definition * * @return bool If the definition is inlineable */ - private function isInlineableDefinition(ContainerBuilder $container, $id, Definition $definition) + private function isInlineableDefinition($id, Definition $definition) { if (!$definition->isShared()) { return true;