Remove dead code

This commit is contained in:
Yonel Ceruto 2019-05-28 18:51:21 -04:00
parent 9cc2a4ecd1
commit ceb83e6898
4 changed files with 2 additions and 24 deletions

View File

@ -17,7 +17,6 @@ use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpKernel;
class TranslationDebugCommandTest extends TestCase
{
@ -181,12 +180,6 @@ class TranslationDebugCommandTest extends TestCase
['foo', $this->getBundle($this->translationDir)],
['test', $this->getBundle('test')],
];
if (HttpKernel\Kernel::VERSION_ID < 40000) {
$returnValues = [
['foo', true, $this->getBundle($this->translationDir)],
['test', true, $this->getBundle('test')],
];
}
$kernel = $this->getMockBuilder('Symfony\Component\HttpKernel\KernelInterface')->getMock();
$kernel
->expects($this->any())

View File

@ -167,12 +167,6 @@ class TranslationUpdateCommandTest extends TestCase
['foo', $this->getBundle($this->translationDir)],
['test', $this->getBundle('test')],
];
if (HttpKernel\Kernel::VERSION_ID < 40000) {
$returnValues = [
['foo', true, $this->getBundle($this->translationDir)],
['test', true, $this->getBundle('test')],
];
}
$kernel = $this->getMockBuilder('Symfony\Component\HttpKernel\KernelInterface')->getMock();
$kernel
->expects($this->any())

View File

@ -14,7 +14,6 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Controller;
use Composer\Autoload\ClassLoader;
use Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser;
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
use Symfony\Component\HttpKernel\Kernel;
/**
* @group legacy
@ -106,11 +105,6 @@ class ControllerNameParserTest extends TestCase
['FooBundle:Fake:index'],
];
// a bundle with children
if (Kernel::VERSION_ID < 40000) {
$bundles[] = ['SensioFooBundle:Fake:index'];
}
return $bundles;
}

View File

@ -18,7 +18,6 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\HttpKernel\Kernel;
/**
* WebProfilerExtension.
@ -55,10 +54,8 @@ class WebProfilerExtension extends Extension
$container->setParameter('web_profiler.debug_toolbar.mode', $config['toolbar'] ? WebDebugToolbarListener::ENABLED : WebDebugToolbarListener::DISABLED);
}
if (Kernel::VERSION_ID >= 40008 || (Kernel::VERSION_ID >= 30408 && Kernel::VERSION_ID < 40000)) {
$container->getDefinition('debug.file_link_formatter')
->replaceArgument(3, new ServiceClosureArgument(new Reference('debug.file_link_formatter.url_format')));
}
$container->getDefinition('debug.file_link_formatter')
->replaceArgument(3, new ServiceClosureArgument(new Reference('debug.file_link_formatter.url_format')));
}
/**