From 22c5a5b67e783a92e486de213d2cc72a611d493c Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Tue, 17 Mar 2015 07:58:23 +0100 Subject: [PATCH] Fix warning by removing unused code --- source/lac/chunk_sparsity_pattern.cc | 46 +++++----------------------- 1 file changed, 7 insertions(+), 39 deletions(-) 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