Added back in Switch::removeChild(Node*)

This commit is contained in:
Robert Osfield
2005-12-16 11:04:33 +00:00
parent 101e5fac53
commit 4535cc0c09
3 changed files with 8 additions and 0 deletions

View File

@@ -99,6 +99,11 @@ bool Switch::insertChild( unsigned int index, Node *child, bool value )
return false;
}
bool Switch::removeChild( Node *child )
{
removeChild( getChildIndex(child) );
}
bool Switch::removeChild(unsigned int pos,unsigned int numChildrenToRemove)
{
if (pos>=_values.size() || numChildrenToRemove==0) return false;