From: Matthias Maier Date: Mon, 7 Sep 2015 02:20:09 +0000 (-0500) Subject: Remove unnecessary specializations and a confusing comment X-Git-Tag: v8.4.0-rc2~466^2~10 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8af11809f64473c930c611520279d7cdb0013fe7;p=dealii.git Remove unnecessary specializations and a confusing comment --- diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index 4e0cf9fdf2..ec33830578 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -816,9 +816,6 @@ inline Tensor::Tensor (const bool initialize) { if (initialize) - // need to create an object Number() to initialize to zero to avoid - // confusion with Tensor::operator=(scalar) when using something like - // Tensor<1,dim,Tensor<1,dim,Number> >. for (unsigned int i=0; i!=dim; ++i) values[i] = value_type(); } @@ -852,18 +849,6 @@ Tensor::Tensor (const Tensor &initializ } -// At some places in the library, we have Point<0> for formal reasons -// (e.g., we sometimes have Quadrature for faces, so we have -// Quadrature<0> for dim=1, and then we have Point<0>). To avoid warnings -// in the above function that the loop end check always fails, we -// implement this function here -template <> -inline -Tensor<1,0,double>::Tensor (const Tensor<1,0,double> &) -{ -} - - template template inline @@ -936,19 +921,6 @@ Tensor::operator = (const Tensor &t) } -// At some places in the library, we have Point<0> for formal reasons -// (e.g., we sometimes have Quadrature for faces, so we have -// Quadrature<0> for dim=1, and then we have Point<0>). To avoid warnings -// in the above function that the loop end check always fails, we -// implement this function here -template <> -inline -Tensor<1,0,double> &Tensor<1,0,double>::operator = (const Tensor<1,0,double> &) -{ - return *this; -} - - template template inline