[Translation] removed unneeded methods
This commit is contained in:
parent
45b218e7c4
commit
6b0e7c8c41
@ -190,9 +190,9 @@ class MessageCatalogue implements MessageCatalogueInterface
|
|||||||
if ($c->getLocale() === $catalogue->getLocale()) {
|
if ($c->getLocale() === $catalogue->getLocale()) {
|
||||||
throw new \LogicException(sprintf('Circular reference detected when adding a fallback catalogue for locale "%s".', $catalogue->getLocale()));
|
throw new \LogicException(sprintf('Circular reference detected when adding a fallback catalogue for locale "%s".', $catalogue->getLocale()));
|
||||||
}
|
}
|
||||||
} while ($c = $c->getParent());
|
} while ($c = $c->parent);
|
||||||
|
|
||||||
$catalogue->setParent($this);
|
$catalogue->parent = $this;
|
||||||
$this->fallbackCatalogue = $catalogue;
|
$this->fallbackCatalogue = $catalogue;
|
||||||
|
|
||||||
foreach ($catalogue->getResources() as $resource) {
|
foreach ($catalogue->getResources() as $resource) {
|
||||||
@ -200,16 +200,6 @@ class MessageCatalogue implements MessageCatalogueInterface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getParent()
|
|
||||||
{
|
|
||||||
return $this->parent;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setParent(self $parent)
|
|
||||||
{
|
|
||||||
$this->parent = $parent;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user