]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Delete a redundant comment.
authorDavid Wells <drwells@vt.edu>
Mon, 8 Jun 2015 03:21:34 +0000 (23:21 -0400)
committerDavid Wells <drwells@vt.edu>
Mon, 8 Jun 2015 03:21:34 +0000 (23:21 -0400)
The contents of this comment are covered by either std::unique_ptr's
documentation or comments around reset_pointer_in_place_if_possible.

source/fe/fe_values.cc

index f0eed2019353570791ca8fdb6879034bed2bba68..4bb89384ebcb4288e6da05ebaae7a6d2f660fdfe 100644 (file)
@@ -3466,11 +3466,6 @@ void FEValues<dim,spacedim>::reinit (const typename Triangulation<dim,spacedim>:
   this->maybe_invalidate_previous_present_cell (cell);
   this->check_cell_similarity(cell);
 
-  // set new cell. auto_ptr will take
-  // care that old object gets
-  // destroyed and also that this
-  // object gets destroyed in the
-  // destruction of the current object
   reset_pointer_in_place_if_possible<typename FEValuesBase<dim,spacedim>::TriaCellIterator>
   (this->present_cell, cell);
 
@@ -3501,11 +3496,6 @@ FEValues<dim,spacedim>::reinit (const TriaIterator<DoFCellAccessor<DH, lda> > &c
   this->maybe_invalidate_previous_present_cell (cell);
   this->check_cell_similarity(cell);
 
-  // set new cell. auto_ptr will take
-  // care that old object gets
-  // destroyed and also that this
-  // object gets destroyed in the
-  // destruction of the current object
   reset_pointer_in_place_if_possible<typename FEValuesBase<dim,spacedim>::template CellIterator<TriaIterator<DoFCellAccessor<DH, lda> > > >
   (this->present_cell, cell);
 
@@ -3678,11 +3668,6 @@ FEFaceValues<dim,spacedim>::reinit (const TriaIterator<DoFCellAccessor<DH, lda>
   Assert (face_no < GeometryInfo<dim>::faces_per_cell,
           ExcIndexRange (face_no, 0, GeometryInfo<dim>::faces_per_cell));
 
-  // set new cell. auto_ptr will take
-  // care that old object gets
-  // destroyed and also that this
-  // object gets destroyed in the
-  // destruction of the current object
   this->maybe_invalidate_previous_present_cell (cell);
   reset_pointer_in_place_if_possible<typename FEValuesBase<dim,spacedim>::template CellIterator<TriaIterator<DoFCellAccessor<DH, lda> > > >
   (this->present_cell, cell);
@@ -3704,11 +3689,6 @@ void FEFaceValues<dim,spacedim>::reinit (const typename Triangulation<dim,spaced
   Assert (face_no < GeometryInfo<dim>::faces_per_cell,
           ExcIndexRange (face_no, 0, GeometryInfo<dim>::faces_per_cell));
 
-  // set new cell. auto_ptr will take
-  // care that old object gets
-  // destroyed and also that this
-  // object gets destroyed in the
-  // destruction of the current object
   this->maybe_invalidate_previous_present_cell (cell);
   reset_pointer_in_place_if_possible<typename FEValuesBase<dim,spacedim>::TriaCellIterator>
   (this->present_cell, cell);
@@ -3855,11 +3835,6 @@ void FESubfaceValues<dim,spacedim>::reinit (const TriaIterator<DoFCellAccessor<D
                       "already refined. Iterate over their children "
                       "instead in these cases."));
 
-  // set new cell. auto_ptr will take
-  // care that old object gets
-  // destroyed and also that this
-  // object gets destroyed in the
-  // destruction of the current object
   this->maybe_invalidate_previous_present_cell (cell);
   reset_pointer_in_place_if_possible<typename FEValuesBase<dim,spacedim>::template CellIterator<TriaIterator<DoFCellAccessor<DH, lda> > > >
   (this->present_cell, cell);
@@ -3883,11 +3858,6 @@ void FESubfaceValues<dim,spacedim>::reinit (const typename Triangulation<dim,spa
   Assert (subface_no < cell->face(face_no)->n_children(),
           ExcIndexRange (subface_no, 0, cell->face(face_no)->n_children()));
 
-  // set new cell. auto_ptr will take
-  // care that old object gets
-  // destroyed and also that this
-  // object gets destroyed in the
-  // destruction of the current object
   this->maybe_invalidate_previous_present_cell (cell);
   reset_pointer_in_place_if_possible<typename FEValuesBase<dim,spacedim>::TriaCellIterator>
   (this->present_cell, cell);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.