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

@ -49,8 +49,6 @@ class OSG_EXPORT Switch : public Group
virtual bool insertChild( unsigned int index, Node *child, bool value );
virtual bool removeChild( Node *child );
virtual bool removeChild(unsigned int pos,unsigned int numChildrenToRemove=1);

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;

View File

@ -43,7 +43,6 @@ BEGIN_OBJECT_REFLECTOR(osg::Switch)
I_Method2(bool, addChild, IN, osg::Node *, child, IN, bool, value);
I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child);
I_Method3(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, IN, bool, value);
I_Method1(bool, removeChild, IN, osg::Node *, child);
I_MethodWithDefaults2(bool, removeChild, IN, unsigned int, pos, , IN, unsigned int, numChildrenToRemove, 1);
I_Method2(void, setValue, IN, unsigned int, pos, IN, bool, value);
I_Method1(bool, getValue, IN, unsigned int, pos);