Commit 6c6b861e authored by Ad Schellevis's avatar Ad Schellevis

(mvc) remove unused getFlatNodes

parent 265ed9dc
......@@ -259,15 +259,6 @@ abstract class BaseModel
$this->internalData->$name = $value ;
}
/**
* forward to root node's getFlatNodes
* @return array all children
*/
public function getFlatNodes()
{
return $this->internalData->getFlatNodes();
}
/**
* get nodes as array structure
* @return array
......
......@@ -388,27 +388,6 @@ abstract class BaseField
return $this->internalXMLTagName;
}
/**
* Recursive method to flatten tree structure for easy validation, returns only leaf nodes.
* @return array named array with field type nodes, using the internal reference.
*/
public function getFlatNodes()
{
$result = array ();
if (count($this->internalChildnodes) == 0) {
return array($this);
}
foreach ($this->__items as $node) {
foreach ($node->getFlatNodes() as $childNode) {
$result[$childNode->internalReference] = $childNode ;
}
}
return $result;
}
/**
* get nodes as array structure
* @return array
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment