From: Martin Kronbichler Date: Tue, 17 Mar 2015 06:58:23 +0000 (+0100) Subject: Fix warning by removing unused code X-Git-Tag: v8.3.0-rc1~370^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F669%2Fhead;p=dealii.git Fix warning by removing unused code --- diff --git a/source/lac/chunk_sparsity_pattern.cc b/source/lac/chunk_sparsity_pattern.cc index b4b63b5af5..02330e458a 100644 --- a/source/lac/chunk_sparsity_pattern.cc +++ b/source/lac/chunk_sparsity_pattern.cc @@ -179,43 +179,6 @@ ChunkSparsityPattern::compress () -namespace internal -{ - namespace - { - /** - * Declare type for container size. - */ - typedef types::global_dof_index size_type; - - // distinguish between compressed sparsity types that define row_begin() - // and SparsityPattern that uses begin() as iterator type - template - void copy_row (const Sparsity &csp, - const size_type row, - const unsigned int chunk_size, - CompressedSimpleSparsityPattern &dst) - { - typename Sparsity::row_iterator col_num = csp.row_begin (row); - const size_type reduced_row = row/chunk_size; - for (; col_num != csp.row_end (row); ++col_num) - dst.add (reduced_row, *col_num/chunk_size); - } - - void copy_row (const SparsityPattern &csp, - const size_type row, - const unsigned int chunk_size, - CompressedSimpleSparsityPattern &dst) - { - SparsityPattern::iterator col_num = csp.begin (row); - const size_type reduced_row = row/chunk_size; - for (; col_num != csp.end (row); ++col_num) - dst.add (reduced_row, col_num->column()/chunk_size); - } - } -} - - template void ChunkSparsityPattern::copy_from (const SparsityType &csp, @@ -226,7 +189,7 @@ ChunkSparsityPattern::copy_from (const SparsityType &csp, rows = csp.n_rows(); cols = csp.n_cols(); - // simple case: just use the other sparsity pattern + // simple case: just use the given sparsity pattern if (chunk_size == 1) { sparsity_pattern.copy_from (csp); @@ -241,7 +204,12 @@ ChunkSparsityPattern::copy_from (const SparsityType &csp, CompressedSimpleSparsityPattern temporary_sp(m_chunks, n_chunks); for (size_type row = 0; row