Removed Switch::removedChild(Node*) as the Group::removeChild(Node*) implementation

should be sufficient, as it calls the virtual removeChild(uint,uint).
This commit is contained in:
Robert Osfield
2005-12-15 15:50:17 +00:00
parent cc78197fb3
commit 6ff781b5b0
3 changed files with 0 additions and 14 deletions

View File

@@ -99,17 +99,6 @@ bool Switch::insertChild( unsigned int index, Node *child, bool value )
return false;
}
bool Switch::removeChild( Node *child )
{
// find the child's position.
unsigned int pos=getChildIndex(child);
if (pos>=_children.size()) return false;
_values.erase(_values.begin()+pos);
return Group::removeChild(child);
}
bool Switch::removeChild(unsigned int pos,unsigned int numChildrenToRemove)
{
if (pos>=_values.size() || numChildrenToRemove==0) return false;