Skip to content

Commit d211ccd

Browse files
minor #31669 Remove dead code (yceruto)
This PR was merged into the 5.0-dev branch. Discussion ---------- Remove dead code | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - cleanup Commits ------- ceb83e6 Remove dead code
2 parents b59fd36 + ceb83e6 commit d211ccd

File tree

4 files changed

+2
-24
lines changed

4 files changed

+2
-24
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationDebugCommandTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Symfony\Component\Console\Tester\CommandTester;
1818
use Symfony\Component\DependencyInjection\Container;
1919
use Symfony\Component\Filesystem\Filesystem;
20-
use Symfony\Component\HttpKernel;
2120

2221
class TranslationDebugCommandTest extends TestCase
2322
{
@@ -181,12 +180,6 @@ private function createCommandTester($extractedMessages = [], $loadedMessages =
181180
['foo', $this->getBundle($this->translationDir)],
182181
['test', $this->getBundle('test')],
183182
];
184-
if (HttpKernel\Kernel::VERSION_ID < 40000) {
185-
$returnValues = [
186-
['foo', true, $this->getBundle($this->translationDir)],
187-
['test', true, $this->getBundle('test')],
188-
];
189-
}
190183
$kernel = $this->getMockBuilder('Symfony\Component\HttpKernel\KernelInterface')->getMock();
191184
$kernel
192185
->expects($this->any())

src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationUpdateCommandTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,6 @@ private function createCommandTester($extractedMessages = [], $loadedMessages =
167167
['foo', $this->getBundle($this->translationDir)],
168168
['test', $this->getBundle('test')],
169169
];
170-
if (HttpKernel\Kernel::VERSION_ID < 40000) {
171-
$returnValues = [
172-
['foo', true, $this->getBundle($this->translationDir)],
173-
['test', true, $this->getBundle('test')],
174-
];
175-
}
176170
$kernel = $this->getMockBuilder('Symfony\Component\HttpKernel\KernelInterface')->getMock();
177171
$kernel
178172
->expects($this->any())

src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerNameParserTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Composer\Autoload\ClassLoader;
1515
use Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser;
1616
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
17-
use Symfony\Component\HttpKernel\Kernel;
1817

1918
/**
2019
* @group legacy
@@ -106,11 +105,6 @@ public function getMissingControllersTest()
106105
['FooBundle:Fake:index'],
107106
];
108107

109-
// a bundle with children
110-
if (Kernel::VERSION_ID < 40000) {
111-
$bundles[] = ['SensioFooBundle:Fake:index'];
112-
}
113-
114108
return $bundles;
115109
}
116110

src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use Symfony\Component\DependencyInjection\Extension\Extension;
1919
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
2020
use Symfony\Component\DependencyInjection\Reference;
21-
use Symfony\Component\HttpKernel\Kernel;
2221

2322
/**
2423
* WebProfilerExtension.
@@ -55,10 +54,8 @@ public function load(array $configs, ContainerBuilder $container)
5554
$container->setParameter('web_profiler.debug_toolbar.mode', $config['toolbar'] ? WebDebugToolbarListener::ENABLED : WebDebugToolbarListener::DISABLED);
5655
}
5756

58-
if (Kernel::VERSION_ID >= 40008 || (Kernel::VERSION_ID >= 30408 && Kernel::VERSION_ID < 40000)) {
59-
$container->getDefinition('debug.file_link_formatter')
60-
->replaceArgument(3, new ServiceClosureArgument(new Reference('debug.file_link_formatter.url_format')));
61-
}
57+
$container->getDefinition('debug.file_link_formatter')
58+
->replaceArgument(3, new ServiceClosureArgument(new Reference('debug.file_link_formatter.url_format')));
6259
}
6360

6461
/**

0 commit comments

Comments
 (0)