[translation][initialize cache] Remove dead code.
This commit is contained in:
parent
d2fc77e4d1
commit
bc066fb3e7
@ -351,12 +351,6 @@ class Translator implements TranslatorInterface, TranslatorBagInterface
|
||||
return;
|
||||
}
|
||||
|
||||
if (null === $this->cacheDir) {
|
||||
$this->initialize();
|
||||
|
||||
return $this->loadCatalogue($locale);
|
||||
}
|
||||
|
||||
$this->assertValidLocale($locale);
|
||||
$cache = new ConfigCache($this->cacheDir.'/catalogue.'.$locale.'.php', $this->debug);
|
||||
if (!$cache->isFresh()) {
|
||||
|
Reference in New Issue
Block a user