From 19ea47f79f3f9b776c89dad3603f230b88b7f79b Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 22 Nov 2013 03:34:54 +0000 Subject: [PATCH] Simplify code slightly. git-svn-id: https://svn.dealii.org/trunk@31756 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/numerics/data_out.cc | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/deal.II/source/numerics/data_out.cc b/deal.II/source/numerics/data_out.cc index 816a41f320..29a5a97bc1 100644 --- a/deal.II/source/numerics/data_out.cc +++ b/deal.II/source/numerics/data_out.cc @@ -55,15 +55,6 @@ namespace internal false), cell_to_patch_index_map (&cell_to_patch_index_map) {} - - - - /** - * Dummy function used for WorkStream. - */ - template - void - copy(const DataOutBase::Patch &patch) {} } } @@ -306,7 +297,7 @@ build_one_patch (const std::pair *cell_and_index, (*data.cell_to_patch_index_map)[cell_and_index->first->level()][cell_and_index->first->index()]; // did we mess up the indices? Assert(patch_idx < patches.size(), ExcInternalError()); - + // Put the patch in the patches vector patches[patch_idx] = patch; patches[patch_idx].patch_index = patch_idx; @@ -460,8 +451,8 @@ void DataOut::build_patches (const Mapping::build_one_patch, this, std_cxx1x::_1, std_cxx1x::_2, std_cxx1x::_3, curved_cell_region,std_cxx1x::ref(this->patches)), - std_cxx1x::bind(&internal::DataOut::copy, - std_cxx1x::_1), + // no copy-local-to-global function needed here + std_cxx1x::function &)>(), thread_data, sample_patch); } -- 2.39.5