@@ -544,66 +544,6 @@ Node * ReplicatedMesh::add_node (std::unique_ptr<Node> n)
544544 return add_node (n .release ());
545545}
546546
547- #ifdef LIBMESH_ENABLE_DEPRECATED
548-
549- Node * ReplicatedMesh ::insert_node (Node * n )
550- {
551- libmesh_deprecated ();
552- libmesh_error_msg_if (!n , "Error, attempting to insert nullptr node." );
553- libmesh_error_msg_if (n -> id () == DofObject ::invalid_id , "Error, cannot insert node with invalid id." );
554-
555- if (n -> id () < _nodes .size ())
556- {
557- // Trying to add an existing node is a no-op. This lets us use
558- // a straightforward MeshCommunication::allgather() to fix a
559- // not-actually-replicated-yet ReplicatedMesh, as occurs when
560- // reading Nemesis files.
561- if (n -> valid_id () && _nodes [n -> id ()] == n )
562- return n ;
563-
564- // Don't allow anything else to replace an existing Node.
565- libmesh_error_msg_if (_nodes [ n -> id () ] != nullptr ,
566- "Error, cannot insert new node on top of existing node." );
567- }
568- else
569- {
570- // Allocate just enough space to store the new node. This will
571- // cause highly non-ideal memory allocation behavior if called
572- // repeatedly...
573- _nodes .resize (n -> id () + 1 );
574- }
575-
576- #ifdef LIBMESH_ENABLE_UNIQUE_ID
577- if (!n -> valid_unique_id ())
578- n -> set_unique_id (_next_unique_id ++ );
579- else
580- _next_unique_id = std ::max (_next_unique_id , n -> unique_id ()+ 1 );
581- #endif
582-
583- n -> add_extra_integers (_node_integer_names .size (),
584- _node_integer_default_values );
585-
586- // We have enough space and this spot isn't already occupied by
587- // another node, so go ahead and add it.
588- ++ _n_nodes ;
589- _nodes [ n -> id () ] = n ;
590-
591- // If we made it this far, we just inserted the node the user handed
592- // us, so we can give it right back.
593- return n ;
594- }
595-
596- Node * ReplicatedMesh ::insert_node (std ::unique_ptr < Node > n )
597- {
598- libmesh_deprecated ();
599- // The mesh now takes ownership of the Node. Eventually the guts of
600- // insert_node(Node*) will get moved to a private helper function, and
601- // calling insert_node(Node*) directly will be deprecated.
602- return insert_node (n .release ());
603- }
604-
605- #endif
606-
607547void ReplicatedMesh ::delete_node (Node * n )
608548{
609549 libmesh_assert (n );
0 commit comments