[Translation] removed unneeded methods

This commit is contained in:
Fabien Potencier 2011-11-11 09:02:31 +01:00
parent 45b218e7c4
commit 6b0e7c8c41

View File

@ -190,9 +190,9 @@ class MessageCatalogue implements MessageCatalogueInterface
if ($c->getLocale() === $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;
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}
*