model_server/obj/src/objTree.h.cxx
// Remove this (with its subtree) from tree
Remove this (with its subtree) from tree
Remove this ( with its subtree ) from tree
void objTree::remove_from_tree()
  {
  if(this->get_prev() == 0)
    {
    objTree *  w = this->get_parent();
    if(w)
      w->put_first_link(this->get_next());
    w = this->get_next();
    if(w)
      w->put_prev_link(0);
    }
  else
    this->get_prev()->put_next_link(this->get_next());
  this->put_next_link(0);
  this->put_prev_link(0);
  this->put_parent_link(0);
  }
void objTree :: remove_from_tree ( ) { if ( this -> get_prev ( ) == 0 ) { objTree * w = this -> get_parent ( ) ; if ( w ) w -> put_first_link ( this -> get_next ( ) ) ; w = this -> get_next ( ) ; if ( w ) w -> put_prev_link ( 0 ) ; } else this -> get_prev ( ) -> put_next_link ( this -> get_next ( ) ) ; this -> put_next_link ( 0 ) ; this -> put_prev_link ( 0 ) ; this -> put_parent_link ( 0 ) ; }
Remove this (with its subtree) from tree
Remove this ( with its subtree ) from tree