From: Wolfgang Bangerth Date: Mon, 13 Jul 2015 21:07:29 +0000 (-0500) Subject: Remove storing data we end up not using. X-Git-Tag: v8.3.0-rc1~10^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1130%2Fhead;p=dealii.git Remove storing data we end up not using. We passed a data element around and stored it in a local class, but ended up not using it after all. This is likely a leftover from a previous iteration in the code. In any case, removing the member variable turns out to compile and test fine, so we don't need to pass this data to the constructor either. --- diff --git a/source/distributed/tria.cc b/source/distributed/tria.cc index 033d9de0fc..f9fb9dc4e3 100644 --- a/source/distributed/tria.cc +++ b/source/distributed/tria.cc @@ -1652,8 +1652,7 @@ namespace public: RefineAndCoarsenList (const Triangulation &triangulation, const std::vector &p4est_tree_to_coarse_cell_permutation, - const types::subdomain_id my_subdomain, - typename internal::p4est::types::forest &forest); + const types::subdomain_id my_subdomain); /** * A callback function that we pass to the p4est data structures when a @@ -1688,8 +1687,6 @@ namespace std::vector::quadrant> coarsen_list; typename std::vector::quadrant>::const_iterator current_coarsen_pointer; - typename internal::p4est::types::forest forest; - void build_lists (const typename Triangulation::cell_iterator &cell, const typename internal::p4est::types::quadrant &p4est_cell, const unsigned int myid); @@ -1713,10 +1710,7 @@ namespace RefineAndCoarsenList:: RefineAndCoarsenList (const Triangulation &triangulation, const std::vector &p4est_tree_to_coarse_cell_permutation, - const types::subdomain_id my_subdomain, - typename internal::p4est::types::forest &forest) - : - forest(forest) + const types::subdomain_id my_subdomain) { // count how many flags are set and allocate that much memory unsigned int n_refine_flags = 0, @@ -3384,8 +3378,7 @@ namespace parallel RefineAndCoarsenList refine_and_coarsen_list (*this, p4est_tree_to_coarse_cell_permutation, - my_subdomain, - *parallel_forest); + my_subdomain); // copy refine and coarsen flags into p4est and execute the refinement // and coarsening. this uses the refine_and_coarsen_list just built,