]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove some unused non-public functions.
authorDavid Wells <wellsd2@rpi.edu>
Sat, 4 Mar 2017 21:54:23 +0000 (16:54 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 4 Mar 2017 23:38:58 +0000 (18:38 -0500)
These were found by cppcheck.

include/deal.II/base/work_stream.h
include/deal.II/numerics/error_estimator.templates.h

index 9345b433cb9558e01c6872b899374d3c46f3fca3..a2dcd87b51fe86fec837115cbedef9310d73be11 100644 (file)
@@ -461,26 +461,6 @@ namespace WorkStream
          * happens, whereas a small number is better for load balancing.
          */
         const unsigned int           chunk_size;
-
-        /**
-         * Initialize the pointers and vector elements in the specified entry
-         * of the item_buffer.
-         */
-        void init_buffer_elements (const unsigned int element,
-                                   const CopyData    &sample_copy_data)
-        {
-          Assert (item_buffer[element].n_items == 0,
-                  ExcInternalError());
-
-          item_buffer[element].work_items
-          .resize (chunk_size, remaining_iterator_range.second);
-          item_buffer[element].scratch_data
-            = &thread_local_scratch;
-          item_buffer[element].sample_scratch_data
-            = &sample_scratch_data;
-          item_buffer[element].copy_datas
-          .resize (chunk_size, sample_copy_data);
-        }
       };
 
 
index 909172d9fce8ba011cbc84579f6050d3e3695665..121285370fa24bca2ca717d6d175a433236944ab 100644 (file)
 
 DEAL_II_NAMESPACE_OPEN
 
-
-namespace
-{
-  template <typename CellIterator>
-  inline
-  void advance_by_n (CellIterator &cell,
-                     const unsigned int n)
-  {
-    // store a pointer to the end iterator, since we can't get at it any more
-    // once cell is already the end iterator (in that case dereferencing
-    // cell-> triggers an assertion)
-    const CellIterator endc = cell->get_dof_handler().end();
-    for (unsigned int t=0; ((t<n) && (cell!=endc)); ++t, ++cell)
-      ;
-  }
-}
-
-
 namespace internal
 {
   namespace

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.