From 8af11809f64473c930c611520279d7cdb0013fe7 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sun, 6 Sep 2015 21:20:09 -0500 Subject: [PATCH] Remove unnecessary specializations and a confusing comment --- include/deal.II/base/tensor.h | 28 ---------------------------- 1 file changed, 28 deletions(-) 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 -- 2.39.5