Node: remove toLegacyConfigString

This commit is contained in:
Thomas Gelf 2016-12-09 14:11:56 +01:00
parent 791a0286b8
commit 0aeb3183f4
2 changed files with 1 additions and 8 deletions

View file

@ -334,13 +334,6 @@ abstract class Node
return ' ';
}
// TODO: Why isn't this abstract?
// abstract public function toLegacyConfigString();
public function toLegacyConfigString(& $rendered = array())
{
return '';
}
public function getName()
{
return $this->name;

View file

@ -191,7 +191,7 @@ class LegacyStorage extends Storage
$rendered = array();
$conf = '';
foreach ($bp->getChildren() as $child) {
foreach ($bp->getRootNodes() as $child) {
$conf .= $child->toLegacyConfigString($rendered);
$rendered[$child->getName()] = true;
}