From 8decfd9f76ed8e3df092ee4ff0e6a1bac4be6b31 Mon Sep 17 00:00:00 2001 From: young Date: Tue, 11 Mar 2014 12:56:23 +0000 Subject: [PATCH] Wipe is_zero function, which ended up being unused. git-svn-id: https://svn.dealii.org/branches/branch_petscscalar_complex@32641 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/base/numbers.h | 35 -------------------------- 1 file changed, 35 deletions(-) diff --git a/deal.II/include/deal.II/base/numbers.h b/deal.II/include/deal.II/base/numbers.h index 135b905987..6e541fc6ad 100644 --- a/deal.II/include/deal.II/base/numbers.h +++ b/deal.II/include/deal.II/base/numbers.h @@ -210,12 +210,6 @@ namespace numbers */ static real_type abs (const number &x); - - /** - * Return true if this number is zero. - */ - static - bool is_zero (const number &x); }; @@ -279,12 +273,6 @@ namespace numbers */ static real_type abs (const std::complex &x); - - /** - * Return true if this number is zero. - */ - static - bool is_zero (const std::complex &x); }; } @@ -331,17 +319,6 @@ namespace numbers } - template - bool - NumberTraits::is_zero (const number &x) - { - if (x == 0) - return true; - else - return false; - } - - template std::complex NumberTraits >::conjugate (const std::complex &x) @@ -366,18 +343,6 @@ namespace numbers { return std::norm (x); } - - - template - bool - NumberTraits >::is_zero (const std::complex &x) - { - if ((std::real (x) == 0) && (std::imag (x) == 0)) - return true; - else - return false; - } - } -- 2.39.5