[translation][initialize cache] Remove dead code.

This commit is contained in:
Abdellatif Ait boudad 2015-03-14 11:42:25 +00:00
parent d2fc77e4d1
commit bc066fb3e7

View File

@ -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()) {